mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-31 10:25:54 +00:00
Merge pull request #376 from carlos-contreras/fix-safelist-copy-on-readme
Fix copy on safelist description
This commit is contained in:
commit
516660b55c
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ Rack::Attack.safelist_ip("5.6.7.0/24")
|
|||
|
||||
#### `safelist(name, &block)`
|
||||
|
||||
Name your custom safelist and make your ruby-block argument return a truthy value if you want the request to be blocked, and falsy otherwise.
|
||||
Name your custom safelist and make your ruby-block argument return a truthy value if you want the request to be allowed, and falsy otherwise.
|
||||
|
||||
The request object is a [Rack::Request](http://www.rubydoc.info/gems/rack/Rack/Request).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue