removed GB as allowed country
This commit is contained in:
@@ -378,7 +378,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -297,7 +297,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -944,7 +944,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,7 +215,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2322,7 +2322,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1509,7 +1509,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -487,7 +487,6 @@ metadata:
|
|||||||
|
|
||||||
# Allow all Hungarian traffic
|
# Allow all Hungarian traffic
|
||||||
if ($geoip2_country_code = "HU") { set $geo_allowed 1; }
|
if ($geoip2_country_code = "HU") { set $geo_allowed 1; }
|
||||||
if ($geoip2_country_code = "GB") { set $geo_allowed 1; }
|
|
||||||
|
|
||||||
# Public share paths
|
# Public share paths
|
||||||
if ($request_uri ~* "^/share") { set $geo_allowed 1; }
|
if ($request_uri ~* "^/share") { set $geo_allowed 1; }
|
||||||
|
|||||||
@@ -241,7 +241,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary and UK";
|
return 403 "Access restricted to Hungary and UK";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -577,7 +577,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -403,7 +403,6 @@ 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 = "GB") { set $geo_allowed 1; }
|
|
||||||
if ($geo_allowed = 0) {
|
if ($geo_allowed = 0) {
|
||||||
return 403 "Access restricted to Hungary";
|
return 403 "Access restricted to Hungary";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ 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 = "GB") { 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