What exactly is the nginx config that fixes this?

Reply to this note

Please Login to reply.

Discussion

if ($geoip_country_code = "CU") { return 451; }

if ($geoip_country_code = "IR") { return 451; }

if ($geoip_country_code = "KP") { return 451; }

if ($geoip_country_code = "RU") { return 451; }

if ($geoip_country_code = "SY") { return 451; }

Okay, I know, not perfect, but making a best effort goes a long way.

Sorry, you also need to have the geolitecountry.dat from maxmind (eg the geoip-database package in Debian) and set “geoip_country /path/to/file” in your config.