diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb index c53e7125b..09c8f1ace 100644 --- a/config/initializers/rack_attack.rb +++ b/config/initializers/rack_attack.rb @@ -8,9 +8,11 @@ end end -Rack::Attack.throttle("missing descriptions", limit: 1, period: 1) do |request| - request.ip if request.path.starts_with?("/descriptions/missing") -end +Rack::Attack.throttle( + "missing descriptions", + limit: 10, + period: 20 +) { |request| request.ip if request.path.starts_with?("/descriptions/missing") } # See https://social.treehouse.systems/@dee/112524729369220652 Rack::Attack.blocklist("Misbehaving bots") do |request|