whitespace

This commit is contained in:
Aaron Suggs 2016-07-04 21:17:11 -04:00
parent e8433f7693
commit eb9331fb8c

View file

@ -138,11 +138,11 @@ Rack::Attack.blocklist('fail2ban pentesters') do |req|
# so the request is blocked
Rack::Attack::Fail2Ban.filter("pentesters-#{req.ip}", :maxretry => 3, :findtime => 10.minutes, :bantime => 5.minutes) do
# The count for the IP is incremented if the return value is truthy
CGI.unescape(req.query_string) =~ %r{/etc/passwd} ||
CGI.unescape(req.query_string) =~ %r{/etc/passwd} ||
req.path.include?('/etc/passwd') ||
req.path.include?('wp-admin') ||
req.path.include?('wp-admin') ||
req.path.include?('wp-login')
end
end
```