mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
WAF增加“跳转”动作
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -35,6 +35,12 @@ var AllActions = []*HTTPFirewallActionDefinition{
|
||||
Description: "在网页中显示提示文字。",
|
||||
Category: HTTPFirewallActionCategoryBlock,
|
||||
},
|
||||
{
|
||||
Name: "跳转",
|
||||
Code: HTTPFirewallActionRedirect,
|
||||
Description: "跳转到新的URL。",
|
||||
Category: HTTPFirewallActionCategoryBlock,
|
||||
},
|
||||
{
|
||||
Name: "允许通过",
|
||||
Code: HTTPFirewallActionAllow,
|
||||
|
||||
Reference in New Issue
Block a user