Custom ban action?
-
Hi @mihche
How hard would it be for you to add a custom action (https://developer.www.ads-software.com/reference/functions/add_action/) that would fire on each block and send the IP address and the number of times that IP was blocked as arguments?
This way, I could write a little snippet of code that would let me do something when the number of blocks for a given IP address got above a threshold.
In my case, what I want to do is to run a custom script that I already have written that will ban the IP address via Cloudflare. But other developers might want to do other things so having that custom action available with the IP address and block count would allow people to do whatever they want with it.
- The topic ‘Custom ban action?’ is closed to new replies.