mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Merge pull request #425 from joemasilotti/patch-1
Example Configuration: black/white -> block/safe
This commit is contained in:
commit
644d2a412e
1 changed files with 3 additions and 3 deletions
|
|
@ -10,8 +10,8 @@ class Rack::Attack
|
|||
# If you don't want to use Rails.cache (Rack::Attack's default), then
|
||||
# configure it here.
|
||||
#
|
||||
# Note: The store is only used for throttling (not blacklisting and
|
||||
# whitelisting). It must implement .increment and .write like
|
||||
# Note: The store is only used for throttling (not blocklisting and
|
||||
# safelisting). It must implement .increment and .write like
|
||||
# ActiveSupport::Cache::Store
|
||||
|
||||
# Rack::Attack.cache.store = ActiveSupport::Cache::MemoryStore.new
|
||||
|
|
@ -80,4 +80,4 @@ class Rack::Attack
|
|||
# ['']] # body
|
||||
# end
|
||||
end
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue