I am looking to geo tarhet a link on a site Basically if someone visits the site from US I want it to load the US amazon link If some one vists from UK the amazon uk one Its a image link and default will be US any idea
Yup, use the user language, most handy to use or try to fetch more information about the ip adres and trace the country.. there are alot of free api's to do that!
IP Address is the way to go ... Searched for "free ip address location api" and this looks like it might be of use: ipinfodb.com/ip_location_api.php but not sure how accurate ...
I think you need IP2Country database and a script that convert the client ip address to the country , you can find free database on the net
i use geo api to get visitor country, and use it to redirect the visitor to the specific page ans it's free too
hello the easy way is use javascript api from maxmind <script language="JavaScript" src="http://j.maxmind.com/app/country.js"></script> <script language="JavaScript"> var uc=geoip_country_code(); if(uc=="US"){ document.write("html us here code here"); }else{ document.write("html no us here code here"); } </script> best