We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c97c7 commit eb337b5Copy full SHA for eb337b5
config/initializers/rack-attack.rb
@@ -1,6 +1,8 @@
1
# In config/initializers/rack-attack.rb
2
class Rack::Attack
3
4
+ Rack::Attack.cache.store = ActiveSupport::Cache::MemoryStore.new
5
+
6
throttle('req/ip', :limit => 300, :period => 5.minutes) do |req|
7
req.ip # unless req.path.starts_with?('/assets')
8
end
0 commit comments