If you would like to block access to your website from a certain country, we have a great and simple solution for you!
In order to do this, you would need to activate your Cloudflare service. In case you don’t have it yet, you can purchase it directly from your Hostinger account:
If you already have an active Cloudflare service, the next step is to log in to this page. In case you purchased the service from Hostinger, you can use the same email that is associated with your Hostinger account.
Open the Settings for your domain, and select the Firewall on the menu:
Next, you need to click Firewall Rules and Create a firewall rule:
If you want to block access from a specific country, choose Country on the Field option, equals for Operator, and Country name as the Value.
For example, if you would like to block access from Canada, the details would look like this:
Next, Cloudflare offers several options that you can choose:
Select the Block option and click Deploy.
Congratulations, now you know how to block access to your website from a specific country! 👍