![]() |
Script to block people not in the USA?
I need to block all visitors not from the USA.
Does anyone know of a good script? |
Use Maxmind.com's (or any other company's) GEOIP solution.
|
Aye, Maxmind's http://www.maxmind.com/app/mod_geoip
Install the database, then just this to your .htaccess GeoIPEnable On GeoIPDBFile /path/to/GeoIP.dat RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !^US$ RewriteRule ^(.*)$ http://yourinternationaldestination.here [R,L] |
Awesome. Thanks
I'll give it a try. |
The Maxmind's is great !
|
Or ask a question that only Americans don't know the answer ....
such as: " On what continent is Morocco " .... That should pretty much do it .... |
Quote:
|
Quote:
|
All times are GMT -7. The time now is 05:21 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123