Block requests with matching header
class Rack::Attack
throttle('req/ip', limit: 0, period: 1.second) do |req|
req.ip if req.env['HTTP_X_SCANNER'] == 'Netsparker' ||
req.params['email'] == '[email protected]'
end
end
Block requests with matching header
class Rack::Attack
throttle('req/ip', limit: 0, period: 1.second) do |req|
req.ip if req.env['HTTP_X_SCANNER'] == 'Netsparker' ||
req.params['email'] == '[email protected]'
end
end