Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-18-2005, 08:11 AM   #1
Tony Montana
Confirmed User
 
Join Date: Jan 2005
Posts: 794
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?
__________________
I am a marketing Genius.
Tony Montana is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2005, 08:12 AM   #2
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Use Maxmind.com's (or any other company's) GEOIP solution.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2005, 08:24 AM   #3
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
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]
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2005, 08:26 AM   #4
Tony Montana
Confirmed User
 
Join Date: Jan 2005
Posts: 794
Awesome. Thanks
I'll give it a try.
__________________
I am a marketing Genius.
Tony Montana is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2005, 08:27 AM   #5
Moren
Registered User
 
Join Date: May 2005
Posts: 20
The Maxmind's is great !
Moren is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2005, 08:31 AM   #6
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,676
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 ....
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2005, 09:07 AM   #7
cezam
Confirmed User
 
Join Date: Jun 2003
Location: CZ, EU
Posts: 1,363
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 ....
__________________
cezam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-18-2005, 09:22 AM   #8
Brian911
Confirmed User
 
Join Date: Dec 2001
Posts: 654
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
__________________
- Brian
[ a directive occured while processing this error ]
Brian911 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.