mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +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
|
||||
|
||||
```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|
|
||||
req.user_agent == "SpecialAgent"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue