Metadata retention mechanism when limit/period procs are used on throttles #603
Nowaker
started this conversation in
Ideas & Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Example from README:
In my specific case, I have a dynamic
limit
that's based on whether an IP is recognized as VPN, DC, Tor, specific country, etc. Presence of each indicator increases the penalty. For example: VPN x3, Russia 2x, DC x3, and VPN+Russia would be x5. To simplify it for this issue description, consider it something like this:When a throttle trips, all I'll know is that the limit was 60, or 30, or 20, or 10.. It can be any number that comes out. Wouldn't it be great to retain the value of
factors
variable somehow, so notifications and throttle request handler can access it inenv['rack.attack.match_data']
or alike?For example:
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions