CSF CountryCode: MaxMind paid version support
Posted: 02 May 2025, 20:04
Hi There,
We like to use CSF in combination with a Paid version of MaxMind Geo-IP2 database.
If i review the code, the free-version is hard-coded:
ConfigServer/Config.pm:
It would be great if these download URLs (or edition_id) are overwritable so that the Paid GeoIP2-Country-CSV edition can be used.
We like to use CSF in combination with a Paid version of MaxMind Geo-IP2 database.
If i review the code, the free-version is hard-coded:
ConfigServer/Config.pm:
Code: Select all
$config{cc_country} = "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&suffix=zip&license_key=$config{MM_LICENSE_KEY}";
$config{cc_city} = "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&suffix=zip&license_key=$config{MM_LICENSE_KEY}";
$config{cc_asn} = "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&suffix=zip&license_key=$config{MM_LICENSE_KEY}";