Can I block specific countries from accessing my website?

Yes, you can block specific countries from accessing your website by modifying the .htaccess file located in your "public_html" directory.

Please refer to the following link, which will allow you to select the country (or countries) you wish to block. This website will provide you with the exact code that must then be added to your .htaccess file, saved and uploaded to your account.

http://www.countryipblocks.net/country-blocks/htaccess-deny-format/

There are additional ways to deny visitors for those that have more advanced applications and/or programming knowledge.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

I think my site is down, what should I do?

If you think that your website or server is down please give at least 10 minutes before...

Do you provide SSH/Telnet access with your Web Hosting/Reseller Hosting accounts?

Sorry but SSH/Telnet access is not provided with our Web Hosting / Reseller Hosting accounts. If...

How can I disable directory browsing?

You can disable directory browsing from your cPanel control panel using the "Index Manager", you...

What is the path to my web directory and other utilities?

The path to your web directory is: /home/username/public_htmlReplace "username" with the actual...

How do I setup secure webspace and the SSL certificate?

To use SSL encryption on your web hosting account you will need two things:1. SSL CertificateFor...