• Resolved jeffresc

    (@jeffresc)


    Is it possible to have all banned IPs be banned via the Cloudflare API? This stops the IP from even accessing the server and saving valuable bandwidth.

Viewing 1 replies (of 1 total)
  • Hi @jeffresc,

    You could use the “Export All IPs” button from the “Wordfence –> Blocking” page to retrieve the lists of all currently blocked IP addresses and then feed that list to a custom script based on the “Create access rule” method of the Cloudflare API.

    However you could end up with a very long list of blocked IPs in your Cloudflare access rules; and it’s also important to note that depending on your Wordfence Firewall settings a blocked IP might not necessarily be involved in anything malicious (for example, a user’s IP could be blocked because they misspelled their username).

    Furthermore, IP addresses can be reassigned so it could eventually permanently block (at Cloudflare level) genuine visitors.

Viewing 1 replies (of 1 total)
  • The topic ‘Ban IPs via Cloudflare API’ is closed to new replies.