mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 15:00:26 +08:00
GET302/POST307增加访问迟滞
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user