Skip to content

Commit

Permalink
No throttling for admin stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ujh committed Jan 25, 2025
1 parent 00d8127 commit b36d497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/rack_attack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# Global throttle for all requests. This will hopefully help with the spikes.
Rack::Attack.throttle("req/ip", limit: 120, period: 1.minute) do |request|
request.ip
request.ip unless request.path.starts_with?("/admins")
end

# Block misbehaving bots
Expand Down

0 comments on commit b36d497

Please sign in to comment.