Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/crowdsec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,9 @@ function csmod.AppSecCheck(ip)
if runtime.conf["APPSEC_FAILURE_ACTION"] == DENY then
ok = false
remediation = runtime.conf["FALLBACK_REMEDIATION"]
-- a failing AppSec call returns this initial status code, so a deny
-- failure action must carry the forbidden code, not the 200 placeholder
status_code = ngx.HTTP_FORBIDDEN
end

local method = "GET"
Expand Down