@@ -319,6 +319,7 @@ metadata:
|
|||||||
if ($remote_addr ~ "^192\.168\.") { set $geo_allowed 1; }
|
if ($remote_addr ~ "^192\.168\.") { set $geo_allowed 1; }
|
||||||
if ($remote_addr ~ "^10\.") { set $geo_allowed 1; }
|
if ($remote_addr ~ "^10\.") { set $geo_allowed 1; }
|
||||||
if ($geoip2_country_code = "HU") { set $geo_allowed 1; }
|
if ($geoip2_country_code = "HU") { set $geo_allowed 1; }
|
||||||
|
if ($geoip2_country_code = "IE") { set $geo_allowed 1; }
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user