I’m interested in implementing a query string on Defender block pages, such as adding “?blocked=1” to the URL, and then leveraging Cloudflare for further actions. Currently, I have this configuration in place successfully through a different security plugin. In the settings of the other plugin, I’ve designated “?blocked=1” as the redirect page. This setup ensures that whenever a banned offender attempts to access any page, this parameter is appended to the URL, enabling network-level blocking.
Furthermore, I’m exploring the possibility of directly synchronizing blocked IP addresses with Cloudflare’s API. One approach to achieve this could involve utilizing tools like fail2ban or similar methods. This would enhance the efficiency of managing and blocking unauthorized access at the network level. I would appreciate any insights, recommendations, or suggestions you might have regarding this integration.