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.
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.)
If you want to block couple or more country then use “And” option and set everything here the same as we did previously.
Now, choose the Block option as an action and click Deploy.
Champ! Now you can block your site to access from any specific country by using Cloudflare.