Skip to content

Commit 41ad3e3

Browse files
committed
allow admin abuse
1 parent 64549d5 commit 41ad3e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/initializers/rack_attack.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class Rack::Attack
3131
false
3232
end
3333

34+
Rack::Attack.safelist("admin abooze") do |req|
35+
req.path.start_with?("/api/admin/")
36+
end
37+
3438
Rack::Attack.throttle("general", limit: 300, period: 1.minute) do |req|
3539
req.ip unless req.path.start_with?("/assets")
3640
end

0 commit comments

Comments
 (0)