请求变量增加${cname},WAF checkpoint增加cname和isCNAME

This commit is contained in:
刘祥超
2022-11-16 15:01:10 +08:00
parent 37ef86b92f
commit a89c02fd10
4 changed files with 66 additions and 0 deletions

View File

@@ -146,6 +146,22 @@ var AllCheckpoints = []*CheckpointDefinition{
Instance: new(RequestHostCheckpoint),
Priority: 100,
},
{
Name: "CNAME",
Prefix: "cname",
Description: "当前网站服务CNAME比如38b48e4f.goedge.cn",
HasParams: false,
Instance: new(RequestCNAMECheckpoint),
Priority: 100,
},
{
Name: "是否为CNAME",
Prefix: "isCNAME",
Description: "是否为CNAME值为1或0",
HasParams: false,
Instance: new(RequestIsCNAMECheckpoint),
Priority: 100,
},
{
Name: "请求来源URL",
Prefix: "referer",