Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a website where I want to find out visitor's country from his IP address. There are some databases of country's IPs range that can be used. when I download them to my database, should I be woried about some changes made in future? How often are IP's range for countries actualized?

share|improve this question
    
From my experience, very slowly. My country changed its name twice over the last 10 years (last change was in 2008) and there are still numerous location services that use older names which can cause all sots of problems for example: you can't ship to non-existing country, so there are web stores that take some effort to set up correctly because they try to auto-detect location, there are some sites that show wrong language because of bad interpretation for two letter country codes and so on. –  AndrejaKo Jan 19 '12 at 6:26

2 Answers 2

up vote 1 down vote accepted

IP addresses, postcodes, and the like, were not invented to directly encode geographical locations. That is, simply, not their purpose.

These things do change, and as you can see they change often enough for people to spot quite large errors from year to year. They also were never intended to represent countries in the first place. They represent the topgraphy of Internet network connections, not physical geography.

Then of course you have the difference between the end user's IP address and the back end of the HTTP proxy's IP address, on top of all that.

Further reading

share|improve this answer

I think you'd be better off using a geoip service that already exists rather than putting your own together - that way you don't need to concern yourself with maintaining the database.

An example is here, but there are many out there.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.