CSF CountryCode: MaxMind paid version support

Post Reply
lumix1991
Junior Member
Posts: 1
Joined: 05 Feb 2024, 13:33

CSF CountryCode: MaxMind paid version support

Post by lumix1991 »

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:

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}";
It would be great if these download URLs (or edition_id) are overwritable so that the Paid GeoIP2-Country-CSV edition can be used.
Post Reply