mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-24 14:55:18 +08:00
调整WAF操作符顺序
This commit is contained in:
@@ -125,18 +125,6 @@ var AllRuleOperators = []*RuleOperatorDefinition{
|
|||||||
Description: "不包含某个字符串,比如Hello字符串中不包含Hi",
|
Description: "不包含某个字符串,比如Hello字符串中不包含Hi",
|
||||||
CaseInsensitive: HTTPFirewallRuleCaseInsensitiveNo,
|
CaseInsensitive: HTTPFirewallRuleCaseInsensitiveNo,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Name: "包含前缀",
|
|
||||||
Code: HTTPFirewallRuleOperatorPrefix,
|
|
||||||
Description: "包含字符串前缀部分,比如/hello前缀会匹配/hello, /hello/world等",
|
|
||||||
CaseInsensitive: HTTPFirewallRuleCaseInsensitiveNo,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name: "包含后缀",
|
|
||||||
Code: HTTPFirewallRuleOperatorSuffix,
|
|
||||||
Description: "包含字符串后缀部分,比如/hello后缀会匹配/hello, /hi/hello等",
|
|
||||||
CaseInsensitive: HTTPFirewallRuleCaseInsensitiveNo,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Name: "包含任一字符串",
|
Name: "包含任一字符串",
|
||||||
Code: HTTPFirewallRuleOperatorContainsAny,
|
Code: HTTPFirewallRuleOperatorContainsAny,
|
||||||
@@ -149,6 +137,18 @@ var AllRuleOperators = []*RuleOperatorDefinition{
|
|||||||
Description: "包含字符串列表中的所有字符串,比如/hello/world必须包含/hello和/world,每行一个字符串",
|
Description: "包含字符串列表中的所有字符串,比如/hello/world必须包含/hello和/world,每行一个字符串",
|
||||||
CaseInsensitive: HTTPFirewallRuleCaseInsensitiveNo,
|
CaseInsensitive: HTTPFirewallRuleCaseInsensitiveNo,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "包含前缀",
|
||||||
|
Code: HTTPFirewallRuleOperatorPrefix,
|
||||||
|
Description: "包含字符串前缀部分,比如/hello前缀会匹配/hello, /hello/world等",
|
||||||
|
CaseInsensitive: HTTPFirewallRuleCaseInsensitiveNo,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "包含后缀",
|
||||||
|
Code: HTTPFirewallRuleOperatorSuffix,
|
||||||
|
Description: "包含字符串后缀部分,比如/hello后缀会匹配/hello, /hi/hello等",
|
||||||
|
CaseInsensitive: HTTPFirewallRuleCaseInsensitiveNo,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Name: "包含二进制数据",
|
Name: "包含二进制数据",
|
||||||
Code: HTTPFirewallRuleOperatorContainsBinary,
|
Code: HTTPFirewallRuleOperatorContainsBinary,
|
||||||
|
|||||||
Reference in New Issue
Block a user