From 5847aed43ed76c4d86137badf46690697bc61b4a Mon Sep 17 00:00:00 2001 From: pierre Date: Fri, 13 Mar 2026 00:07:31 +0000 Subject: [PATCH] blocking every country instead of allowing all --- nginx.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index eee40bb..732dd42 100755 --- a/nginx.conf +++ b/nginx.conf @@ -61,13 +61,17 @@ http { } map $geoip2_data_country_iso_code $allowed_country { - default yes; - IN no; + default no; + #NL yes; # Allow netherland + FR yes; # Allow France + UK yes; # Allow UK + NL no; # Block netherland + IN no; # Block India CN no; # Block China RU no; # Block Russia KP no; # Block North Korea } - + # Full list of country codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes include /etc/nginx/deny.d/*.conf; include /etc/nginx/conf.d/*.conf; include /etc/nginx/blacklisted.d/*.conf;