From 256f672ed6fb823b0cb499f00908a1dc0592fc0d Mon Sep 17 00:00:00 2001 From: hoelee Date: Thu, 16 Apr 2026 14:33:00 +0800 Subject: [PATCH] feat(botfilter): add implausibleBrowser --- matcher.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matcher.go b/matcher.go index d6b82a4d..7168a6a2 100644 --- a/matcher.go +++ b/matcher.go @@ -97,3 +97,9 @@ func hasStaticAssetExtension(requestPath string) bool { return false } +func implausibleBrowser(r *http.Request, userAgent string) bool { + ua := strings.ToLower(userAgent) + if !strings.Contains(ua, "mozilla/") { + return false + } +