Skip to content

Commit

Permalink
Reduce limit for throttling of bots
Browse files Browse the repository at this point in the history
  • Loading branch information
zaziemo committed Jul 23, 2024
1 parent 04dd5df commit 3234297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/rack_attack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class Rack::Attack
# Throttle all requests by IP (60rpm)
#
# Key: "rack::attack:#{Time.now.to_i/:period}:req/ip:#{req.ip}"
throttle('req/ip', limit: 300, period: 5.minutes) do |req|
req.ip # unless req.path.start_with?('/assets')
throttle('req/ip', limit: 100, period: 5.minutes) do |req|
req.ip
end

### Prevent Brute-Force Login Attacks ###
Expand Down

0 comments on commit 3234297

Please sign in to comment.