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