GeoIp lookup with Coldfusion and Coldbox

Akitogo Team, 15 Mar 2017

If you want to match an IP address with country, city, latitude or longitude then you might be interested in our just updated Coldbox module which is available on Github. The module uses a local database file to lookup the requested information, so no remote calls via cfhttp required. The country database is quite small it's just a bit over 2.5mb. The city database is much larger, around 50mb. So if your application server has a small memory setting, consider using country lookup only.

The module uses the Maxmind GeoLite2 database which is updated monthly and can be downloaded here. The GeoLite2 databases are distributed under the Creative Commons Attribution-ShareAlike 4.0 International License.

There is a Stackoverflow post about the accuracy of the database.