Loans - Free Advertising - Ogłoszenia,praca - Loans - eHarmony

PDA

View Full Version : How does website to country tool work?


hulkster
Mar 6th 2004, 5:28 pm
Shawn,

I recall we discussed this a while ago in Email, but I figured this would be a decent first post in your new forums (nice idea!) and that way, any answer you provide is logged for others.

I've also written an IP address to country geo-location tool (http://www.komar.org/cgi-bin/ip_to_country.pl) which simply uses the Geo::IPFree Perl Module to provide the info. I remember you do some more sophisticated analysis, and am just curious about the nuts-n-bolts if you are willing to share 'em.

Keep up the good^H^H^H^HGREAT work! ;-)
alek
http://www.komar.org/

digitalpoint
Mar 6th 2004, 6:25 pm
Nothing too exciting with it actually... basically it just goes to the IP registry source (ARIN, RIPE, etc.) and queries their databases for the info. In reality, you can get more detailed info (company, address, etc.) that owns it, but for the purpose of determining the country, all that info is useless to me.

- Shawn

novasoft
Apr 20th 2004, 4:18 am
Alek,
Any idea where i can get hold of an ASP or PHP implementation of the same?

Thanks
Satyajeet
http://www.novasoft-inc.com

hulkster
Apr 20th 2004, 9:02 am
I'm just a Perl guy - Shawn is Mr. PHP ... but I don't think he'll release source code for this ... but the sources are commonly available (I reference a Perl Module), so you could track this down and/or build yourself.

alek

nlopes
May 9th 2004, 3:24 am
Alek,
Any idea where i can get hold of an ASP or PHP implementation of the same?



I've maded a PHP version. It uses a mysql DB (info from: http://ip-to-country.webhosting.info/)

Test it at: http://testes.aborla.net/ip.php

If you want the source, just drop me an e-mail: nuno AT aborla DOT n e t