From 47544520e827db005288e1fe33f318bc5e28c556 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 12 Oct 2022 15:03:51 +0800 Subject: [PATCH] Update init.lua --- plugins/op_waf/waf/lua/init.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/op_waf/waf/lua/init.lua b/plugins/op_waf/waf/lua/init.lua index 1dd82f925..692a2aefd 100644 --- a/plugins/op_waf/waf/lua/init.lua +++ b/plugins/op_waf/waf/lua/init.lua @@ -642,16 +642,15 @@ function waf() -- black ip if waf_ip_black() then return true end + -- ua check + if waf_user_agent() then return true end + if waf_url() then return true end -- cc setting if waf_drop() then return true end if waf_cc_increase() then return true end if waf_cc() then return true end - -- ua check - if waf_user_agent() then return true end - if waf_url() then return true end - -- cookie检查 if waf_cookie() then return true end