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 08-27-2009, 05:57 AM   #1
camchoice
Confirmed User
 
camchoice's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Netherlands
Posts: 1,267
GEO Redirect script

Does anyone know of a good GEO redirect script ?

I need a script that can redirect a user to a domain when he comes from a certain country when he clicks a link. If he is not from that specific country he goes to the original URL ..
__________________
Free Porn Webcams
camchoice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2009, 06:15 AM   #2
Axel XXX
Confirmed User
 
Axel XXX's Avatar
 
Join Date: Aug 2002
Posts: 6,924
IP2Location
__________________
CCBill Sponsors // ccbillsponsors.com // Your #1 Source for CCBill Sponsors!
Axel XXX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2009, 06:24 AM   #3
camchoice
Confirmed User
 
camchoice's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Netherlands
Posts: 1,267
Quote:
Originally Posted by Axel XXX View Post
I know, but thats just the database. I would need a script, or did I miss that ip2location script ?
__________________
Free Porn Webcams
camchoice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2009, 06:47 AM   #4
StariaDaniel
Confirmed User
 
Join Date: Oct 2007
Location: Netherlands
Posts: 415
Quote:
Originally Posted by camchoice View Post
I know, but thats just the database. I would need a script, or did I miss that ip2location script ?
Well they offer it as a web service, but that could come pricy for a high traffic site:
http://www.ip2location.com/ip-country-web-service.aspx

Actually only redirection on country (ip based, which is not 100% precise) can be done pretty fast by an experienced webdeveloper.

There are even free databases like http://software77.net/geo-ip/ - but ip2location seems to be much more precise.
StariaDaniel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2009, 06:52 AM   #5
Pics Traffic
Confirmed User
 
Pics Traffic's Avatar
 
Industry Role:
Join Date: Jun 2004
Location: Europe
Posts: 3,055
here we go buba..

geoip.inc

grab it here:

http://uploading.com/files/DJSN7JON/geoip.zip.html

include this in your redirect page(s):

($my_countries = array('cn,ru');) <- list of counties you want to redirect

PHP Code:
<?php
require_once('/home/html/path-to-site');

$gi geoip_open('GeoIP.dat'GEOIP_MEMORY_CACHE);
$country geoip_country_code_by_addr($gi$_SERVER['REMOTE_ADDR']);
geoip_close($gi);

$my_countries = array('tr');
if (
in_array(strtolower($country), $my_countries))
{
header('Location: http://go-away.com');
}
download this geoip file as well:

http://uploading.com/files/KWCOOPZR/GeoIP.dat.html
Pics Traffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2009, 07:25 AM   #6
camchoice
Confirmed User
 
camchoice's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Netherlands
Posts: 1,267
I will try that out... many thanks !
__________________
Free Porn Webcams
camchoice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2009, 07:28 AM   #7
donnie
Confirmed User
 
Join Date: Jan 2003
Posts: 1,630
Easiest way in my opinion is using Maxmind database and then define in your .htaccess file where you want to send visitors from certain countries. Very easy to do?
donnie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-27-2009, 07:50 AM   #8
camchoice
Confirmed User
 
camchoice's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Netherlands
Posts: 1,267
I want to redirect them when they click a link.. It is simular to skimming traffic from galleries. So I think I need to create some kind of redirect url via a script.
Link > Script > Original URL or Redirect to my URL
__________________
Free Porn Webcams
camchoice 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.