Skip to main content

IP address block/unblock via Cloudflare’

Cloudflare has upgraded their API to version 4 some while ago. https://api.cloudflare.com/#user-level-firewall-access-rule-properties I want to use the new APIs to block IP addresses using fail2ban. Using curl directly is a bit cumbersome, so I created a few php helper scripts. They can also be used in other projects. Thanks to andrieslouw at github https://gist.github.com/andrieslouw/3c833332cbf66f95ca6751f82013acf5 I didn’t […]