mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
whitespace
This commit is contained in:
parent
e8433f7693
commit
eb9331fb8c
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue