mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Merge pull request #149 from watsonbox/readme-scoping-fail2ban
Add note to README.md about scoping of Fail2Ban filters
This commit is contained in:
commit
2b75edacfd
1 changed files with 2 additions and 0 deletions
|
|
@ -147,6 +147,8 @@ Rack::Attack.blacklist('fail2ban pentesters') do |req|
|
|||
end
|
||||
```
|
||||
|
||||
Note that `Fail2Ban` filters are not automatically scoped to the blacklist, so when using multiple filters in an application the scoping must be added to the discriminator e.g. `"pentest:#{req.ip}"`.
|
||||
|
||||
#### Allow2Ban
|
||||
`Allow2Ban.filter` works the same way as the `Fail2Ban.filter` except that it *allows* requests from misbehaving
|
||||
clients until such time as they reach maxretry at which they are cut off as per normal.
|
||||
|
|
|
|||
Loading…
Reference in a new issue