如何将Maxmind .MMDB转换为.DAT? [英] How to Convert a Maxmind .MMDB to .DAT?

查看:585
本文介绍了如何将Maxmind .MMDB转换为.DAT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将MaxMinds MMDB GeoIP转换为DAT格式,以便可以与modsecurity + Apache一起使用. Modsecurity仅支持DAT格式.

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

推荐答案

从2019年2月开始,以下Python脚本是将GeoIP2 MMDB格式转换为旧版.dat格式的最佳选择:

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

使用此脚本,有人完成了转换并使生成的.dat文件可供下载:

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

https://www.miyuru.lk/geoiplegacy

这篇关于如何将Maxmind .MMDB转换为.DAT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆