mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-08 00:26:37 +08:00
[优化] 添加 WAF 阻止逻辑以短路 PoW 处理,更新测试以验证新行为
This commit is contained in:
@@ -158,6 +158,7 @@ local function active_groups(config, groups)
|
||||
end
|
||||
|
||||
local function exit_with_group(group)
|
||||
ngx.ctx.openflare_waf_blocked = true
|
||||
ngx.status = tonumber(group.block_status_code) or 418
|
||||
local body = group.block_response_body or ""
|
||||
if body ~= "" then
|
||||
|
||||
Reference in New Issue
Block a user