Resolve IP to Country

IP-to-Country.com is a FREE database that gives you information on the geographical location of an IP address based on Internet infrastructure information.

The IP-to-Country Database and Tools can be used for:

  • Real Time Geo-Locating (Country)
  • Provide Location Aware Content (language, currency, etc.)
  • Corporate Websites/E-commerce (think global, act local)
  • Fraud Detection (Credit Card Fraud, etc.)
  • On-line Campaign (targeted Banner Ads)
  • Digital Rights Management
  • Web Server Log Analysis
  • Auto-selection of fields on forms (country, currency,language, etc.)
  • Filter access on basis of originating country
  • Spam Filtering

The database is available as a CSV (Comma Separated Value) list which can be imported into a mysql database (there is even an example PHP script that will do it all for you), and the database is also accessible as a Web Service.

The site has lots of examples on how to use the database via PHP and other popular scripting langauges.