GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Script to block people not in the USA? (https://gfy.com/showthread.php?t=468925)

Tony Montana 05-18-2005 08:11 AM

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?

psili 05-18-2005 08:12 AM

Use Maxmind.com's (or any other company's) GEOIP solution.

Lycanthrope 05-18-2005 08:24 AM

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]

Tony Montana 05-18-2005 08:26 AM

Awesome. Thanks
I'll give it a try.

Moren 05-18-2005 08:27 AM

The Maxmind's is great !

directfiesta 05-18-2005 08:31 AM

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 ....

cezam 05-18-2005 09:07 AM

Quote:

Originally Posted by directfiesta
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 ....

:1orglaugh :1orglaugh

Brian911 05-18-2005 09:22 AM

Quote:

Originally Posted by directfiesta
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 ....

definately more secure than geoip! thumbs up :thumbsup


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