Block all countries except U.S. and Canada


I would like to block all countries from my website except for the U.S. and Canada.
I’m currently using the Firewall App to add access rules to block individual countries, but that will take forever adding individual countries.

Is there a way block ALL countries, then exclude the U.S. and Canada from that list?



It took me 15 minutes. :slight_smile:

You can do this via the API as well. But I guess it will take more time to write the script than adding them one by one.

Be aware that blocking is not included in Free, Pro, and Business plans. It may work for now but it’s a bug and all rules may be reset to “challenge” once it is fixed.

Unless @ryan has some news about it. :slight_smile:

firewallaccessrules.api.not_entitled.country_block (Code: 10016)

15 minutes? I can handle that : )
Thanks for the heads up!


It’s definitely going back to how it was (or very close to it), but I think the launch of shared accounts has complicated it a little. Should be soon.

closed #5

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