Which DB file for correct http.ipfilter use

Hi. I’m wanting to use country based filtering with the http.ipfilter plugin. The docs refer to free access to GeoLite’s databases. The docs also use the file format .mmdb in the examples. But I think .mmdb format is only available to paying MaxMind customers.

Will the plugin read csv files?

If so which one do I use? I’ve downloaded the “GeoLite2 Country: CSV Format” product/ Within that zip archive is:
GeoLite2-Country-Blocks-IPv4.csv
GeoLite2-Country-Blocks-IPv6.csv
GeoLite2-Country-Locations-de.csv
GeoLite2-Country-Locations-en.csv
GeoLite2-Country-Locations-es.csv
GeoLite2-Country-Locations-fr.csv
GeoLite2-Country-Locations-ja.csv
GeoLite2-Country-Locations-pt-BR.csv
GeoLite2-Country-Locations-ru.csv
GeoLite2-Country-Locations-zh-CN.csv

The ipfilter plugin is an unofficial plugin, from GitHub - pyed/ipfilter: ipfilter is a middleware for Caddy that blocks or allows requests based on the client's IP

It seems that due to GDPR and other regulations, MaxMind had to stop providing the .mmdb files for free as of last month: Significant Changes to Accessing and Using GeoLite2 Databases | MaxMind Blog

I think you’ll need to open an issue on the ipfilter repo to ask for .csv support to be added.

1 Like

Ah, ok. Thanks for the info.

You can still get the GeoLite2 .mmdb files for free, you just need to register for a license key (which is free). Takes just a few minutes to sign up for a free account and set up the scheduled updater with your credentials.

1 Like

Doh! You are absolutely right.

Sorry, I’m new to all this and now realise that “GeoIP2 Binary” means it is the .mmdb format.

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.