mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +00:00
Mention 'match_discriminator' in README.md
This commit is contained in:
parent
39c04b311f
commit
993d724b64
1 changed files with 2 additions and 1 deletions
|
|
@ -237,7 +237,8 @@ Rack::Attack.throttled_response = lambda do |env|
|
||||||
# NB: you have access to the name and other data about the matched throttle
|
# NB: you have access to the name and other data about the matched throttle
|
||||||
# env['rack.attack.matched'],
|
# env['rack.attack.matched'],
|
||||||
# env['rack.attack.match_type'],
|
# env['rack.attack.match_type'],
|
||||||
# env['rack.attack.match_data']
|
# env['rack.attack.match_data'],
|
||||||
|
# env['rack.attack.match_discriminator']
|
||||||
|
|
||||||
# Using 503 because it may make attacker think that they have successfully
|
# Using 503 because it may make attacker think that they have successfully
|
||||||
# DOSed the site. Rack::Attack returns 429 for throttling by default
|
# DOSed the site. Rack::Attack returns 429 for throttling by default
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue