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)
-   -   looking for a script to block/redirect traffic by region (https://gfy.com/showthread.php?t=541436)

AmateurFlix 11-17-2005 08:28 AM

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.

Lycanthrope 11-17-2005 09:00 AM

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


AmateurFlix 11-17-2005 09:04 AM

Quote:

Originally Posted by Lycanthrope
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)

Thanks man! :)

Gasper 11-17-2005 10:16 AM

Any idea which countries to block?

I've added Russia, China, Brazil (not too sure bout this one).. any other suggestions?

Lycanthrope 11-17-2005 10:30 AM

Quote:

Originally Posted by Gasper
Any idea which countries to block?

I've added Russia, China, Brazil (not too sure bout this one).. any other suggestions?

Those are probably the 3 big ones to worry about, but in my opinion, surfers from countries other than AE AB AT AU BE CA CH DE DK ES FI FR GB GI GR IE IT JP LI LU MC MX NL NO NZ PR PT SE UK US VA ZA will do nothing but burn bandwidth.

Of course, traffic trading partners may not like you redirecting all the shit. :2 cents:

Gasper 11-17-2005 10:35 AM

It's for the paysites :2 cents: :pimp


All times are GMT -7. The time now is 05:17 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123