about summary refs log tree commit diff
path: root/config/initializers/rack-attack.rb
blob: 15fc6b351df956e22c99818a1baa1da6a391071c (plain) (blame)
1
2
3
4
5
class Rack::Attack
  throttle('req/ip', limit: 300, period: 5.minutes) do |req|
    req.ip
  end
end