mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Update readme
This commit is contained in:
parent
97a43f7e66
commit
355a6fbce6
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ Customize the response of blacklisted and throttled requests using an object tha
|
|||
```ruby
|
||||
Rack::Attack.blacklisted_response = lambda do |env|
|
||||
# Using 503 because it may make attacker think that they have successfully
|
||||
# DOSed the site. Rack::Attack returns 401 for blacklists by default
|
||||
# DOSed the site. Rack::Attack returns 403 for blacklists by default
|
||||
[ 503, {}, ['Blocked']]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue