|
|
|
||||
|
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
Industry Role:
Join Date: Jul 2004
Posts: 7,762
|
looking for a script to block/redirect traffic by region
As the title says, I'm looking for a program to block or redirect traffic by region on my server. It will be used on a TGP that gets a decent amount of traffic so it can't use many resources or it will bog down the server.
I want this to block the traffic before it ever reaches my TGP index page, so that way my trade script won't count the traffic from the areas specified. If you have a solution post here, send email to sales at amateur-flix.com, or icq 253889540. Thanks.
__________________
|
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
Don't just block them, redirect them to something that will at least give you a chance at some extra money. Try Password By Phone.
Install a database and use .htaccess: http://www.maxmind.com/app/mod_geoip (the free one is pretty decent, the paid one obviously a bit better) Code:
GeoIPEnable On
GeoIPDBFile /path/to/GeoIP.dat
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$
RewriteRule ^(.*)$ http://www.chinese.url [L]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^RU$
RewriteRule ^(.*)$ http://www.russian.url [L]
etc...
|
|
|
|
|
|
#3 | |
|
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 7,762
|
Quote:
__________________
|
|
|
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
Any idea which countries to block?
I've added Russia, China, Brazil (not too sure bout this one).. any other suggestions? |
|
|
|
#5 | |
|
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
Quote:
Of course, traffic trading partners may not like you redirecting all the shit. ![]() |
|
|
|
|
|
|
#6 |
|
Guest
Posts: n/a
|
It's for the paysites
![]() |
|