WAF优化captcha和js_cookie的失败计数器/增强js_cookie的安全性

This commit is contained in:
GoEdgeLab
2022-08-25 17:06:52 +08:00
parent 9c3fdbed59
commit b6432cb6a9
2 changed files with 11 additions and 6 deletions

View File

@@ -50,5 +50,5 @@ func CaptchaDeleteCacheKey(req requests.Request) {
// CaptchaCacheKey 获取Captcha缓存Key
func CaptchaCacheKey(req requests.Request, pageCode CaptchaPageCode) string {
return "CAPTCHA:FAILS:" + pageCode + ":" + req.WAFRemoteIP() + ":" + types.String(req.WAFServerId())
return "CAPTCHA:FAILS:" + pageCode + ":" + req.WAFRemoteIP() + ":" + types.String(req.WAFServerId()) + ":" + req.WAFRaw().URL.String()
}