mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
9 lines
288 B
Ruby
9 lines
288 B
Ruby
|
|
# Log blacklists & throttles
|
|
ActiveSupport::Notifications.subscribe('rack.attack.blacklist') do |name, start, finish, request_id, req|
|
|
puts req.inspect
|
|
end
|
|
|
|
ActiveSupport::Notifications.subscribe('rack.attack.throttle') do |name, start, finish, request_id, req|
|
|
puts req.inspect
|
|
end
|