update
This commit is contained in:
parent
8b0195f051
commit
814156661e
1 changed files with 3 additions and 1 deletions
|
@ -350,7 +350,9 @@ function csmod.Allow(ip)
|
|||
ngx.log(ngx.ALERT, "[Crowdsec] denied '" .. ngx.var.remote_addr .. "' with '"..remediation.."'")
|
||||
if remediation == "ban" then
|
||||
ret_code = runtime.conf["RET_CODE"]
|
||||
ngx.redirect(runtime.conf["REDIRECT_PATH"], utils.HTTP_CODE[ret_code])
|
||||
ngx.req.set_header("Location", runtime.conf["REDIRECT_PATH"])
|
||||
ngx.status = utils.HTTP_CODE[ret_code]
|
||||
return
|
||||
end
|
||||
|
||||
-- if the remediation is a captcha and captcha is well configured
|
||||
|
|
Loading…
Reference in a new issue