![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
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] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jan 2005
Posts: 794
|
Awesome. Thanks
I'll give it a try.
__________________
I am a marketing Genius. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Registered User
Join Date: May 2005
Posts: 20
|
The Maxmind's is great !
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
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 .... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Jun 2003
Location: CZ, EU
Posts: 1,363
|
Quote:
![]() ![]()
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Dec 2001
Posts: 654
|
Quote:
![]()
__________________
- Brian [ a directive occured while processing this error ] |
|
![]() |
![]() ![]() ![]() ![]() ![]() |