'rack.attack.match_data' not available when logging notifications? #527
Unanswered
gregblass
asked this question in
Questions (Q&A)
Replies: 2 comments
-
Ahhh - it looks like this is only available for the throttle.rack_attack event. How would one go about checking the request count for Fail2Ban? (blocklist.rack_attack) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Could you tell me what event for blocklist? (blocklist.rack_attack right ?) Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to save the first time someone gets banned to the database for logging. I only want to do the first time, since subsequent times could overload our database if a spammer hits our server.
I found a couple threads recommending to check the request's
env['rack.attack.match_data']
.However, in 6.2.2, that isn't coming through for me:
Was that removed? Or am I missing something here? Or is there another preferred way now of finding out if this was the request that actually caused the ban?
Beta Was this translation helpful? Give feedback.
All reactions