How can I make a Firewall Rule for all sites in my account?

I’d like to create a Firewall Rule which applies to all 50+ sites on my CloudFlare account. Doing them one by one is time consuming, especially when I need to change it. A few of my sites have paid CloudFlare services, while the others are free.

Ideally, I’d like to set a rule that visitors from all countries outside the US must complete a JavaScript challenge before entering. Is there a quick way to do that and apply it to my entire account, or do I have to make this rule for each site individually?

Thanks,
Brendan

I am afraid, that.

IP access rules can be configured account-wide, but not firewall rules.

The best approach would be to use a script to do this for you.

https://developers.cloudflare.com/firewall/api/cf-firewall-rules

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.