This you can do with bevomedia for free.
one tracking url that can redirect from geo targeting, dayparting, OS, browser
you can make as many links as you want.
![]()
I wonder if it would be possible to use this with the city database instead of country database
could someone help me? I've got the script installed and it appears to be working. I tried to test the script by faking my location, but the scripts just redirects me to the the first link (in my case the us link). The link's landing page knows that i'm "not" from the us (I was spoofing my ip for the UK), but why didn't it go to the link for UK/GB? Thanks!
First go to Maxmind site to download the latest database, if the script still redirects you to the US landing page(everything sets up correctly), this means the database's mistakenly consider that IP comes from the US. You can either update the database manually to correct this error, or just live with it. It's not 100% accurate, but it's the best we can get for free. On my 2 VPS it also can't recognize them as US IPs. So probably you have to live with it, or pay for more accurate database.
By the way, it could also be your spoofing not working, so you better double check it with some other VPS.
Thanks i'll look into it.
Also how is the best way to spoof you ip and location?
could someone help me? I've got the script installed and it appears to be working. I tried to test the script by faking my location, but the scripts just redirects me to the the first link (in my case the us link). The link's landing page knows that i'm "not" from the us (I was spoofing my ip for the UK), but why didn't it go to the link for UK/GB? Thanks!
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
$ip=$_SERVER['REMOTE_ADDR'];
}
return $ip;
}
Thanks man, you saved me some serious hours of coding; now I can just drop this in a framework!