Provide free feeds in the .dat format

The official module distributed with nginx, named ngx_http_geoip_module accepts .dat files which seem to predate .mmdb files.

I’d prefer to not compile our own nginx version with the unofficial ngx_http_geoip2_module which does support mmdb files, so is it possible to publish a .dat file of the free feeds (or at least the country feed)?

This Github project can perform conversions from .csv files to .dat files, although it’s oriented around Maxmind’s CSV files and thus needs to perform mappings between geoname_ids; this could potentially be simplified if you guys implement it.

Thanks!

Hey Cupfuls,

I’d prefer to not compile our own nginx version with the unofficial ngx_http_geoip2_module which does support mmdb files, so is it possible to publish a .dat file of the free feeds (or at least the country feed)?

I explored this solution here: Mastering NGINX with IPinfo for Access Control and Privacy Policies

It works, but I understand that this requires a bit of an unusual approach. You need to compile modules with a separate installation of NGINX.

This Github project can perform conversions from .csv files to .dat files, although it’s oriented around Maxmind’s CSV files and thus needs to perform mappings between geoname_ids; this could potentially be simplified if you guys implement it.

That would be a bit challenging. I think I can only look into creating a .dat the IPinfo’s IP to Country database when I have some free time. I will ping you if I make any progress.