feat(botfilter): add implausibleBrowser

This commit is contained in:
hoelee committed 2026-04-16 14:33:00 +08:00
1 parent 1fe889c4e3
commit 256f672ed6
1 file changed
+6
+6
View File
@@ -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
}