We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e04316c commit fb66625Copy full SHA for fb66625
config/environments/production.rb
@@ -87,9 +87,4 @@
87
# Use default logging formatter so that PID and timestamp are not suppressed.
88
config.log_formatter = ::Logger::Formatter.new
89
90
- config.middleware.use Rack::Block do
91
- path '/posts/fut11com-busca-desarrollador*' do
92
- halt 302
93
- end
94
95
end
config/initializers/block.rb
@@ -0,0 +1,7 @@
1
+Rails.application.config.middleware.use Rack::Block do
2
+ bot_access do
3
+ path '/posts/fut11com-busca-desarrollador*' do
4
+ halt 302
5
+ end
6
7
+end
0 commit comments