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 Mark Forums Read
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 11-17-2005, 08:28 AM   #1
AmateurFlix
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.
__________________
AmateurFlix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2005, 09:00 AM   #2
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
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...
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2005, 09:04 AM   #3
AmateurFlix
Confirmed User
 
Industry Role:
Join Date: Jul 2004
Posts: 7,762
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!
__________________
AmateurFlix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2005, 10:16 AM   #4
Gasper
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?
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2005, 10:30 AM   #5
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
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.
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-17-2005, 10:35 AM   #6
Gasper
Guest
 
Posts: n/a
It's for the paysites
  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
Thread Tools



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.