How to block access to your site from a specific country by using CloudFlare

Hey, do you want to block your site to access from any specific country? Then you are in the right place. Today I’m showing how to block access to your site from a specific country.

In order to do this, you need a Cloudflare account. Where your site added and active. So, I hope you have all these things. Now login to your Cloudflare account and go to your site which is you want to block access from any specific country. In this step from the setting menu select the Firewall option like the screenshot.

how to block access to your site from a specific country

Next, click on Firewall Rules and need to create a new rule.

In this way, select the country option from the field drop-down. Also, select equals for Operator, and Country name as the Value. (Here is select a country from where you want to block access to your site. Like screenshot.)
How to block access to my website from a specific country?

If you want to block couple or more country then use “And” option and set everything here the same as we did previously.
how to block access to your site from a specific country

Now, choose the Block option as an action and click Deploy.
How to block access to my website from a specific country?

Champ! Now you can block your site to access from any specific country by using Cloudflare.

Be the first to comment

Leave a Reply

Your email address will not be published.


*