Automatically update banned IP list in Cloudflare from CSF
We have released a simple bash script, named Flarewall, /http://flarewall.net, that bridges Cloudflare's blocking service with CSF's IP banning abilities. Each time CSF bans an IP address, the offending IP address gets sent to Cloudflare's list of blocked addresses using Cloudflare's API. When the temporary ban expires in CSF, the offending IP gets removed from Cloudflare. All of this is done automatically.
This might save some admin headache when troubleshooting high server loads due to brute force attacks on wp-login.php even though Cloudflare is being used, for example. The offending IP is simultaneously banned in CSF and blocked in Cloudflare, depending on the configured triggers defined in CSF.
-
Hello :) Please note that you might want to consider submitting the script to the cPanel application catalog: cPanel Application Catalog Thank you. 0 -
@Niteblade will the flarewall script and flarewall.net become available again? Thanks 0
Please sign in to leave a comment.
Comments
2 comments