ip2cc: Lookup country country by IP address ===========================================
WHAT IS IT
If you want to gather web statistics by countries (not by top-level domains) or implement targeting, here is solution: ip2cc. This module allows to resolve country from IP address.
ip2cc.py -update - build/update database ip2cc.py <address> - print country name for which <address> is registered For example: $ ./ip2cc.py python.org python.org (126.96.36.199) is located in NETHERLANDS $ ./ip2cc.py google.com.ru google.com.ru (188.8.131.52) is located in UNITED STATES
Module can be used as CGI.
WHERE TO GET
Homepage: http://ppa.sf.net/#ip2cc Download: http://prdownloads.sf.net/ppa/ip2cc-0.2.tar.gz?download
Jason R. Mastaler Fredrik Lundh
0.2 - Adopted to new format of registrars. - Added LACNIC to sources. - Fixed contry code map and added -check option to simplify maintainance.
0.1 Initial release