You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding new throttle blocks outside of config file #241
I want to dynamically throttle specific users in runtime, from a custom dashboard.
In this case, I cannot define the throttle blocks in the rack-attack.rb config file.
When I define the throttle list from the controller, it does not seem to work.
I am unable to find a workaround for this, any idea on how I can get this working?
The only thing i can think of right now that might help with your use case would be storing/keeping some value in the cookies or session hashes that differentiate users.
Then in your config/initializers/rack_attack.rb you can have something like
Activity
grzuy commentedon Jan 18, 2018
The only thing i can think of right now that might help with your use case would be storing/keeping some value in the
cookiesorsessionhashes that differentiate users.Then in your
config/initializers/rack_attack.rbyou can have something likefor example.
grzuy commentedon Mar 8, 2018
I hope the above helps :-)
If not, let me know and we reopen.
alexsmartens commentedon May 22, 2024
@grzuy, any way you've figured this one out?