You can get the Maxmind free database at: http://www.maxmind.com/download/geoip/database/ How the CSV file is split out is here: http://www.maxmind.com/app/csv API's are here: http://www.maxmind.com/app/linux - SL