I want to ban a country from my site. Do i do this or do you have to? also, can i switch this feature on and off myself once it is setup? thank you
I want to ban a country from my site. Do i do this or do you have to? also, can i switch this feature on and off myself once it is setup? thank you
To ban a country from your site, go to http://www.countryipblocks.net/ and in the right column choose ".htaccess deny" and the country you wish to block.
Then copy/paste the result into your .htaccess file in public_html. To unblock it remove those entries from .htaccess
(Disclaimer: the linked website is in no way endorsed by or affiliated with x10Hosting)
█ Ryan Schmidt | Level 2 Support
█ 888-X10-9668 - ryan[@]x10hosting.com
█ x10Hosting - Giving Away Hosting Since 2004
█ Premium Hosting | VPS Services
Don't think that will work with the load balancing set up. allow/deny only sees the IP of the balancer.
EDIT/ADD:
Code to block one IP, tested and works on Chopin.
Code:RewriteCond %{HTTP:X-Forwarded-For} ^130\.65\.11\.68$ RewriteRule ^(.*)$ you-are-not-welcomed-here.html [L]
Last edited by descalzo; 07-19-2011 at 08:29 PM.
Nothing is always absolutely so.