WAF增加“跳转”动作

This commit is contained in:
GoEdgeLab
2023-05-28 17:45:39 +08:00
parent aab8d3e7ed
commit 0688d6b299
2 changed files with 7 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ const (
HTTPFirewallActionRecordIP HTTPFirewallActionString = "record_ip" // 记录IP
HTTPFirewallActionTag HTTPFirewallActionString = "tag" // 标签
HTTPFirewallActionPage HTTPFirewallActionString = "page" // 显示页面
HTTPFirewallActionRedirect HTTPFirewallActionString = "redirect" // 跳转
HTTPFirewallActionAllow HTTPFirewallActionString = "allow" // allow
HTTPFirewallActionGoGroup HTTPFirewallActionString = "go_group" // go to next rule group
HTTPFirewallActionGoSet HTTPFirewallActionString = "go_set" // go to next rule set

View File

@@ -35,6 +35,12 @@ var AllActions = []*HTTPFirewallActionDefinition{
Description: "在网页中显示提示文字。",
Category: HTTPFirewallActionCategoryBlock,
},
{
Name: "跳转",
Code: HTTPFirewallActionRedirect,
Description: "跳转到新的URL。",
Category: HTTPFirewallActionCategoryBlock,
},
{
Name: "允许通过",
Code: HTTPFirewallActionAllow,