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 Cloudflare Dashboard. There, click on the domain in question, and in the left menu choose Firewall Firewall Rules:

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 from:

Select the Block option and click Deploy.

Congratulations, now you know how to block access to your website from a specific country! 👍

Did this answer your question?