Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Convert a Maxmind .MMDB to .DAT?

Tags:

geoip

maxmind

How to convert MaxMinds MMDB GeoIP to DAT format so that I can use with modsecurity+Apache. Modsecurity supports only DAT format.

like image 255
Dev3182805 Avatar asked Jan 10 '14 17:01

Dev3182805


People also ask

How do I download a MaxMind database?

Download databases through the account portalClick on 'Download Files' in the GeoIP2 / GeoLite2 menu in your account portal [direct link, login required]. A list of all databases you are subscribed to will be displayed to you. There will be entries both for our MMDB format files, and CSV format files.


1 Answers

As of February 2019, the following Python script is the best option for converting GeoIP2 MMDB format to legacy .dat format:

https://github.com/sherpya/geolite2legacy

Using this script, somebody has done the conversion and made the resulting .dat files available for download:

https://www.miyuru.lk/geoiplegacy

like image 159
IanB Avatar answered Sep 30 '22 20:09

IanB