![]() |
![]() |
![]() |
||||
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 |
Too lazy to set a custom title
Join Date: Feb 2005
Posts: 16,753
|
![]() 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 ! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Join Date: Feb 2005
Posts: 16,753
|
Thanks, anyone else?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Join Date: Feb 2005
Posts: 16,753
|
Bump it up...
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,609
|
Talk to Borked...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Totally Borked
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Totally Borked
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |