update
This commit is contained in:
parent
8fe72a1618
commit
4ec0c45bd5
2 changed files with 3 additions and 2 deletions
|
@ -327,7 +327,7 @@ function csmod.Allow(ip)
|
|||
if utils.ends_with(v, "/") == false then
|
||||
uri_to_check = v .. "/"
|
||||
end
|
||||
if utils.starts_with(uri_to_check, uri_to_check) then
|
||||
if utils.starts_with(ngx.var.uri, uri_to_check) then
|
||||
ngx.log(ngx.ERR, "whitelisted location: " .. uri_to_check)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,7 +7,8 @@ FALLBACK_REMEDIATION=ban
|
|||
REQUEST_TIMEOUT=200
|
||||
UPDATE_FREQUENCY=10
|
||||
MODE=stream
|
||||
EXCLUDE_LOCATION=/admin,/toto # exclude the bouncing on those location
|
||||
# exclude the bouncing on those location
|
||||
EXCLUDE_LOCATION=/admin,/toto
|
||||
#those apply for "ban" action
|
||||
# /!\ REDIRECT_LOCATION and RET_CODE can't be used together. REDIRECT_LOCATION take priority over RET_CODE
|
||||
REDIRECT_LOCATION=
|
||||
|
|
Loading…
Reference in a new issue