nicer comments about polite blocking

pull/29/head
Alec Muffett 2017-11-25 18:39:39 +00:00
rodzic 3ba1251742
commit dd5a0ffd18
2 zmienionych plików z 16 dodań i 16 usunięć

Wyświetl plik

@ -454,39 +454,39 @@ http {
%%ENDIF
%%IF %BLOCK_HOST%
# block hosts matching this name
# politely block hosts matching this name
if ( $host = "%BLOCK_HOST%" ) {
return 403 "%BLOCK_ERR%";
}
%%ELSE
# no named host blocking
# no polite named host blocking
%%ENDIF
%%IF %BLOCK_HOST_RE%
# block hosts matching this regular expression
# politely block hosts matching this regular expression
if ( $host ~* "%BLOCK_HOST_RE%" ) {
return 403 "%BLOCK_ERR%";
}
%%ELSE
# no regular expression host blocking
# no polite regular expression host blocking
%%ENDIF
%%IF %BLOCK_LOCATION%
# block locations by name
# politely block locations by name
location %BLOCK_LOCATION% {
return 403 "%BLOCK_ERR%";
}
%%ELSE
# no named location blocking
# no polite named location blocking
%%ENDIF
%%IF %BLOCK_LOCATION_RE%
# block locations matching this regular expression
# politely block locations matching this regular expression
location ~* "%BLOCK_LOCATION_RE%" {
return 403 "%BLOCK_ERR%";
}
%%ELSE
# no regular expression location blocking
# no polite regular expression location blocking
%%ENDIF
%%IF %REDIRECT_HOST_CSV%

Wyświetl plik

@ -506,39 +506,39 @@ http {
%%ENDIF
%%IF %BLOCK_HOST%
# block hosts matching this name
# politely block hosts matching this name
if ( $host = "%BLOCK_HOST%" ) {
return 403 "%BLOCK_ERR%";
}
%%ELSE
# no named host blocking
# no polite named host blocking
%%ENDIF
%%IF %BLOCK_HOST_RE%
# block hosts matching this regular expression
# politely block hosts matching this regular expression
if ( $host ~* "%BLOCK_HOST_RE%" ) {
return 403 "%BLOCK_ERR%";
}
%%ELSE
# no regular expression host blocking
# no polite regular expression host blocking
%%ENDIF
%%IF %BLOCK_LOCATION%
# block locations by name
# politely block locations by name
location %BLOCK_LOCATION% {
return 403 "%BLOCK_ERR%";
}
%%ELSE
# no named location blocking
# no polite named location blocking
%%ENDIF
%%IF %BLOCK_LOCATION_RE%
# block locations matching this regular expression
# politely block locations matching this regular expression
location ~* "%BLOCK_LOCATION_RE%" {
return 403 "%BLOCK_ERR%";
}
%%ELSE
# no regular expression location blocking
# no polite regular expression location blocking
%%ENDIF
%%IF %REDIRECT_HOST_CSV%