mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +00:00
Updated README.md to reflect optional limit and period parmas for tracks.
This commit is contained in:
parent
1ebe1c3517
commit
c51676d295
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ end
|
||||||
### Tracks
|
### Tracks
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
# Track requests from a special user agent
|
# Track requests from a special user agent, supports limit and period options like throttle.
|
||||||
Rack::Attack.track("special_agent") do |req|
|
Rack::Attack.track("special_agent") do |req|
|
||||||
req.user_agent == "SpecialAgent"
|
req.user_agent == "SpecialAgent"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue