Skip to content

Commit

Permalink
Even lower limit for that page
Browse files Browse the repository at this point in the history
  • Loading branch information
ujh committed Jan 6, 2025
1 parent 1bc99d4 commit 0af0a3c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config/initializers/rack_attack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 0af0a3c

Please sign in to comment.