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:
Hello,
I will show you how to easily set up Cloudflare, Edit Records, and Troubleshoot with images!
PLEASE READ BEFORE STARTING!!!
Cloudflare cannot be used on free subdomains from InfinityFree.
You can use Cloudflare on Custom Domains (yoursite.com ) and with Custom Sub-Domains (subdomain.yoursite.com ).
A video tutorial can be found at the end of this guide, should you get stuck.
You must connect your domain to your InfinityFree account first. Read more here .
Set-Up Cloudflare
Go to Dash…
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.
Admin
August 18, 2021, 12:58pm
3
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:
Sometimes, when you upload a file, the upload is completed but the file is deleted immediately afterwards. This is usually caused by one of the following issues:
The file is not in a htdocs folder
All websites files must be uploaded to either the main htdocs folder, or to the domain specific htdocs folder (like example.com/htdocs).
You cannot upload files to other directories on your account. If you try to create or upload files anywhere else, they will be deleted automatically.
The file type…
system
Closed
August 25, 2021, 12:59pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.