mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-09 08:55:19 +08:00
请求变量增加${cname},WAF checkpoint增加cname和isCNAME
This commit is contained in:
@@ -23,4 +23,5 @@ type HTTPFirewallCheckpointDefinition struct {
|
||||
Options []OptionInterface `json:"options"` // 选项
|
||||
IsComposed bool `json:"isComposed"` // 是否为组合的checkpoint
|
||||
Priority int `json:"priority"` // 优先级
|
||||
DataType string `json:"dataType"` // 数据类型:number, bool等
|
||||
}
|
||||
|
||||
@@ -152,6 +152,21 @@ var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
|
||||
IsRequest: true,
|
||||
Priority: 100,
|
||||
},
|
||||
{
|
||||
Name: "CNAME",
|
||||
Prefix: "cname",
|
||||
Description: "当前网站服务CNAME,比如38b48e4f.goedge.cn",
|
||||
IsRequest: true,
|
||||
Priority: 100,
|
||||
},
|
||||
{
|
||||
Name: "是否为CNAME",
|
||||
Prefix: "isCNAME",
|
||||
Description: "是否为CNAME,值为1(是)或0(否)",
|
||||
IsRequest: true,
|
||||
Priority: 100,
|
||||
DataType: "bool",
|
||||
},
|
||||
{
|
||||
Name: "请求来源URL",
|
||||
Prefix: "referer",
|
||||
|
||||
Reference in New Issue
Block a user