I am searching for a free db (like an updated XML or CSV file) that relates IP addresses to specific locations. I want more information than just the country. I want some sort of region or city reference, even if that ends up to be a number that makes no sense to me. Doesn't have to be super correct or always up to date either. It is just to distinguish between user groups and not to monitor or spy on them.
There are many IP to Location databases/services there, but going for free will cost in limited number of API calls, and features (paid one gives comparatively more). Freeness of service and the accuracy of service is inversely proportional to each other. Listed below are some services arranged by accurate (or more feature) to free:
Offers features like: Country Code, Country Name, Region as well as province/state name, city, postal code, latitude, longitude, ISP. Their databases are bigger. You can know more about it at http://www.maxmind.com/app/lookup_city
Offers location (City, State, Country), latitudes and longitudes, ISP, Zip Code and Area code. Only the downside is it limits the API calls to 1000 perday. It also have some paid plans. You can get it @ http://www.geoio.com/
It offers city, country, postal code, latitude and longitude. You can directly make a call at
http://www.netip.de/search?query=$ip. It has obsolete database IMO. Similar is
Each services has their own updside and downside. Its upon you to choose. In my personal view the Geo I/O is better of all.