Geo IP Traciking System Script -
It's about time I should be sharing one of my ideas/scripts.This is a simple Geo IP script which will redirect the user based on country.
I got it made for about $100, its very useful so your traffic doesn't go to waste, I'm pretty sure some CPA Networks take your non country specific traffic for themselves!
Useful for if you have traffic from all over the place and offers that are country specific.
Some networks have this feature built in, some don't, I'm not sure about prosper202 if it has it built in or not.
You can use this with BHCB or other incentive gateway tools as well with a little bit of work.
Example:
You are getting leads from Youtube and you want to send them through a Ringtone offer which is exclusive to US traffic. What about all the Canada, and other countries traffic?! Send them through this script first!
Instructions:
1. Save the quoted text as index.php (MAKE SURE ITS .PHP)
2. Create the files indexu.htm, indexa.htm, indexd.htm, indexg.htm, indexc.htm, indexr.htm put these in the same folder. The source code is very simple to read and understand how it works. US, AU, DE, GB, CA are the country codes, Default is for all the rest of the countries. (Could set a toolbar PPI offer to these or something)
3. Create Double meta refreshes or simple redirects on all these index*.htm to country specific offers.
<? $apirl = 'http://nl.ae/iptocapi.php?type=1&ip='.$_SERVER['REMOTE_ADDR']; function gotopage($pageurl){ if(strpos($pageurl,'http://')===0){ } switch($country){ case 'US': gotopage('indexu.htm'); break; } $apirl = 'http://api.hostip.info/country.php?ip='.$_SERVER['REMOTE_ADDR']; switch($country){ case 'US': gotopage('indexu.htm'); break; default: gotopage('indexr.htm'); } ?> |
Works on all browsers.