sparky Posted November 21, 2008 Share Posted November 21, 2008 Thought this link would come in handy for someone http://www.countryipblocks.net/index.php 0 Quote Link to comment Share on other sites More sharing options...
handsonwebhosting Posted November 21, 2008 Share Posted November 21, 2008 eeeeekkk... don't let my customers see it We had one guy with an .htaccess file that was almost 1MB in size and it pretty much crippled his site as he wanted to list all the IPs in the world that couldn't access his site, etc. What a nightmare. Found it much easier to have him on a VPS and load up mod_geoip. Now he can just type in the name of the country he wants to show and it will do it. edit .htaccess file GeoIP ON SetEnvIF GEOIP_COUNTRY_CODE CN BlockThese SetEnvIF GEOIP_COUNTRY_CODE TR BlockThese # Add more countries here Deny from env=BlockThese Maybe someone can use that one rather than IP ranges as the more lines you have in your .htaccess file the longer it takes to load the pages. Don't forget, you MUST compile mod_geoip in Apache Deny from GEOIP_COUNTRY_CODE 0 Quote Link to comment Share on other sites More sharing options...
dominic22 Posted December 1, 2008 Share Posted December 1, 2008 Nice, thanks. This will come in handy for people I know and possibly for me as well. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.