How to set geoip country code for Crimea
skwok
nginx-forum at forum.nginx.org
Tue Aug 18 03:35:12 UTC 2020
Hi,
I'd like to use the geoip module (v1) to block Crimea from access. The
syntax that I'm using is:
geoip_country /usr/share/GeoIP/GeoIP.dat;
map $geoip_country_code $allowed_country {
default yes;
IR no;
}
As there is no ISO3166 code for Crimea
(https://dev.maxmind.com/geoip/legacy/codes/iso3166/), I contacted Maxmind's
support and they have provided me with this:
https://dev.maxmind.com/release-note/crimea-accuracy-update-2019/ . Can
someone please tell me how I can make use of that?
Thanks,
skwok
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289125,289125#msg-289125
More information about the nginx
mailing list