All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Maxmind geoip and mod_geoip
I was using the free version of their maxmind data base via .htaccess:
GeoIPEnable On
##GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
##SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry
##SetEnvIf GEOIP_COUNTRY_CODE MX AllowCountry
# ... place more countries here
Deny from all
Allow from env=AllowCountry
running their script now says
[01:07][root@crowncloud ~]# /usr/bin/geoipupdate
Your account ID or license key is invalid
Your account ID or license key is invalid
any ideas how to update or get a new key? it's been so long since I did this I have no idea how I got the original key - I remember it was a free or lite version and it workd really well to block everyone but the US
Is there some other database I can use other than the maxmind one that will work with mod_geoip?
This solution cut down massively on credit card fraud and I have no idea how long the license has been invalid or why it out would of expired.
Thanks
Comments
You can follow Maxmind instruction to obtain license key and update GeoIP database at:
https://dev.maxmind.com/geoip/updating-databases?lang=en
You may need to register to get the free license key
register here
https://www.maxmind.com/en/geolite2/signup
get your license here
https://www.maxmind.com/en/accounts/current/license-key
you can generate license to use for old version from above link.
Even free account also need a free license key.
Just use cloudflare. Don't put such load on your server.
thanks for the replies. Also found a guy doing the lord's work:
https://www.miyuru.lk/geoiplegacy
You can just grab the files you want and extract them and it seems to work fine.
I grabbed from his site
extracted to /usr/share/GeoIP/GeoLiteCountry.dat
and it seems to be good to go.
Will try registering with maxmind but I can't seem to find where the key is or why it became invalid.
Is the maxmind database the same one the hosting providers use to block proxies, etc? Seems to work great for country blocking as long as u can keep the DB updated.
Thanks again for the help
after installing, i get these 3 files grabbed from maxmind:
-rw-r--r-- 1 root root 7451457 Sep 9 01:52 GeoLite2-ASN.mmdb
-rw-r--r-- 1 root root 74436010 Sep 9 01:52 GeoLite2-City.mmdb
-rw-r--r-- 1 root root 6312408 Sep 9 01:52 GeoLite2-Country.mmdb
however, mod_geoip is pointing to GeoIP.dat which is not updated.
Do I need to convert these .mmdb files somehow to the .dat file mod_geoip can read?
You need to use the maxminddb.so extension instead and update your code. The legacy stuff is not updated any more.