ModSecurity Geolocation Database Setup

leonep

Well-Known Member
Nov 18, 2014
143
6
68
Pescara
cPanel Access Level
Root Administrator
Hi,
i want to add Geolocation db in modsecurity config...

looking to the description:
"ModSecurity relies on the free geolocation databases (GeoLite City and GeoLite Country) that can be obtained from MaxMind http://www.maxmind.com. Currently ModSecurity only supports the legacy GeoIP format. Maxmind's newer GeoIP2 format is not yet currently supported. "
so it appears ModSecurity accepts only GeoIp v1 format

in the maxmind i found only Geoip2 database...

any suggestions please??thanks a lot
 

cPSamuelM

Technical Analyst Team Lead
Staff member
Nov 20, 2019
196
37
103
USA
cPanel Access Level
Root Administrator
Hello @leonep

It appears that MaxMind has continued support for the GeoIP legacy services, but only for existing users:

https://dev.maxmind.com/geoip/legacy/web-services/

Unfortunately it seems that access to the legacy database is not available for new MaxMind users, and as such this feature of ModSecurity can't be used. That's the determination I've come to after reviewing MaxMind's documentation as well as ModSecurity's. But if anyone else has come across this issue and has anything to add, I welcome the input!
 
  • Like
Reactions: cPanelMichael