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 01-03-2009, 04:10 AM   #1
adonthenet
Too lazy to set a custom title
 
adonthenet's Avatar
 
Join Date: Feb 2005
Posts: 16,753
Traffic Monetize By Countries [ Business ] Need Help...

Hey all,
I'm looking for some sort of script that would take a surfer to a page according to his country


For example : US surfer that comes to the site goes to LINK A when he click on a button
UK surfer that comes ot the site and click on the same button goes to LINK B ( link related to UK only )

Canadian Surfer clicks on the same button goes to LINK C ( link related to his country - Canada )

Rest of the world go to Link D for example...




Who can help with this? anyone know some sort of script? how I can get it done?

Thanks in advance GFY community !
adonthenet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2009, 04:49 AM   #2
SordidMedia
So Fucking Banned
 
Join Date: Oct 2008
Location: U.K
Posts: 283
http://www.maxmind.com/app/geoip_country is the IP/Country database.

http://www.geoadsphp.com/ is one solution for you.

I have a custom script that I can sell you fairly cheaply also if you are interested that is very simple to use.
SordidMedia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2009, 05:06 AM   #3
adonthenet
Too lazy to set a custom title
 
adonthenet's Avatar
 
Join Date: Feb 2005
Posts: 16,753
Thanks, anyone else?
adonthenet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2009, 10:27 AM   #4
adonthenet
Too lazy to set a custom title
 
adonthenet's Avatar
 
Join Date: Feb 2005
Posts: 16,753
Bump it up...
adonthenet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2009, 10:29 AM   #5
ravo
Confirmed User
 
ravo's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Skype: ravo.fpctraffic
Posts: 5,440
Go with Maxmind's database and API. Any competent host should be able to set this up for you, so it's available as an enviromental variable (which means would can do a simple redirect thru htaccess).
__________________
AdultAdBroker - Buy and Sell Your Flat Rate Banners, Links, Tabs, Pops, Email Clicks and Members' Area Traffic - updated June 2025
ravo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2009, 10:39 AM   #6
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,609
Talk to Borked...
__________________


👁️ 👍️ 💩
CurrentlySober is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2009, 04:43 PM   #7
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
<?php
require_once('geoplugin.class.php');
$geoplugin = new geoPlugin();

$geoplugin->locate();

echo "<a href='/{$geoplugin->countryCode}.html'>Your own country link</a>";

?>

see http://www.geoplugin.com/webservices/php#php_class

all there is to it ;)
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2009, 04:49 PM   #8
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
more precisely based on your requirements...
Code:
<?php
require_once('geoplugin.class.php');
$geoplugin = new geoPlugin();

$geoplugin->locate();

switch ($geoplugin->countryCode) {
  case 'US':
    $url = 'US.html';
    break;
  case 'UK':
    $url = 'UK.html';
    break;
  case 'CA':
    $url = 'CA.html';
    break;
  default:
    $url = 'default.html';
}
echo "<a href='/{$url}'>Your own country link</a>";

?>
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked 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.