MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / HasAttackActions

Method HasAttackActions

internal/waf/rule_set.go:140–147  ·  view source on GitHub ↗

HasAttackActions 检查是否含有攻击防御动作

()

Source from the content-addressed store, hash-verified

138
139// HasAttackActions 检查是否含有攻击防御动作
140func (this *RuleSet) HasAttackActions() bool {
141 for _, action := range this.actionInstances {
142 if action.IsAttack() {
143 return true
144 }
145 }
146 return false
147}
148
149func (this *RuleSet) ActionCodes() []string {
150 return this.actionCodes

Callers 2

checkWAFRequestMethod · 0.80
checkWAFResponseMethod · 0.80

Calls 1

IsAttackMethod · 0.65

Tested by

no test coverage detected