mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
WAF规则集中增加“允许搜索引擎”选项,可以快速允许搜索引擎访问
This commit is contained in:
@@ -13,15 +13,16 @@ type HTTPFirewallActionConfig struct {
|
|||||||
|
|
||||||
// HTTPFirewallRuleSet 规则集定义
|
// HTTPFirewallRuleSet 规则集定义
|
||||||
type HTTPFirewallRuleSet struct {
|
type HTTPFirewallRuleSet struct {
|
||||||
Id int64 `yaml:"id" json:"id"`
|
Id int64 `yaml:"id" json:"id"`
|
||||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||||
Name string `yaml:"name" json:"name"`
|
Name string `yaml:"name" json:"name"`
|
||||||
Code string `yaml:"code" json:"code"`
|
Code string `yaml:"code" json:"code"`
|
||||||
Description string `yaml:"description" json:"description"`
|
Description string `yaml:"description" json:"description"`
|
||||||
Connector string `yaml:"connector" json:"connector"`
|
Connector string `yaml:"connector" json:"connector"`
|
||||||
RuleRefs []*HTTPFirewallRuleRef `yaml:"ruleRefs" json:"ruleRefs"`
|
RuleRefs []*HTTPFirewallRuleRef `yaml:"ruleRefs" json:"ruleRefs"`
|
||||||
Rules []*HTTPFirewallRule `yaml:"rules" json:"rules"`
|
Rules []*HTTPFirewallRule `yaml:"rules" json:"rules"`
|
||||||
IgnoreLocal bool `yaml:"ignoreLocal" json:"ignoreLocal"`
|
IgnoreLocal bool `yaml:"ignoreLocal" json:"ignoreLocal"`
|
||||||
|
IgnoreSearchEngine bool `yaml:"ignoreSearchEngine" json:"ignoreSearchEngine"`
|
||||||
|
|
||||||
Actions []*HTTPFirewallActionConfig `yaml:"actions" json:"actions"`
|
Actions []*HTTPFirewallActionConfig `yaml:"actions" json:"actions"`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user