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

Function CaptchaCacheKey

internal/waf/captcha_counter.go:48–50  ·  view source on GitHub ↗

CaptchaCacheKey 获取Captcha缓存Key

(req requests.Request, pageCode CaptchaPageCode)

Source from the content-addressed store, hash-verified

46
47// CaptchaCacheKey 获取Captcha缓存Key
48func CaptchaCacheKey(req requests.Request, pageCode CaptchaPageCode) string {
49 return "WAF:CAPTCHA:FAILS:" + pageCode + ":" + req.WAFRemoteIP() + ":" + types.String(req.WAFServerId())
50}

Callers 2

CaptchaIncreaseFailsFunction · 0.85
CaptchaDeleteCacheKeyFunction · 0.85

Calls 3

WAFRemoteIPMethod · 0.65
WAFServerIdMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected