GET302/POST307增加访问迟滞

This commit is contained in:
刘祥超
2023-03-06 16:28:54 +08:00
parent 77c56e58c0
commit 8835fcb09e
2 changed files with 6 additions and 0 deletions

View File

@@ -74,5 +74,8 @@ func (this *Get302Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, requ
flusher.Flush()
}
// 迟滞访问
time.Sleep(1 * time.Second)
return false, false
}

View File

@@ -99,5 +99,8 @@ func (this *Post307Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, req
flusher.Flush()
}
// 迟滞访问
time.Sleep(1 * time.Second)
return false, false
}