How can I block access to my website to an entire country

I want to block access to my website to an entire country. Someone tell me how can I do it? I used deny from in .htaccess blocking all ip’s but the file is deleted by itself. Is there another method?

You can use Cloudflare’s firewall rules.

Here is a guide to get you stated:

Since you didn’t follow the template, I don’t know if this will work for you or not. Admin’s post below explains why your file was deleted.

The reason the .htaccess file is deleted is because it exceeds the 10 kB file size limit. Some suggestions on working around this for country blocking is described here:

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