When building web apps it is often that you customize content depending on the geographical location of the visitorsThe easiest way to achieve this information is that you ask them where they are from, by choosing a country from a long drop-list.

The thing is that we developers always want to solve things automatically by code (even when it is not really necessary)I found a excellent free IP to GeoLocation service http://ipinfodb.com, and hacked together a small class that queries the API with the IP ad....