sej7278
06-10-2003, 07:37 PM
Does anyone know a way of finding the country a site visitor comes from?
I can only think of getting the IP, then looking up the owner of the range, then from that, find the registry of the IP range (RIPE/ARIN etc.) then country from that - probably take at least 3 WHOIS calls....
Is there a service, that I can use to do this, or a script?
Traceroute and reverse DNS lookup wouldn't work either.....
Is there a basic regional database that says e.g. China is 123.33.xxx.xxx, America is 12.235.xxx.xxx that I could just store as a flat file on my server?
I can only think of getting the IP, then looking up the owner of the range, then from that, find the registry of the IP range (RIPE/ARIN etc.) then country from that - probably take at least 3 WHOIS calls....
Is there a service, that I can use to do this, or a script?
Traceroute and reverse DNS lookup wouldn't work either.....
Is there a basic regional database that says e.g. China is 123.33.xxx.xxx, America is 12.235.xxx.xxx that I could just store as a flat file on my server?
