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 + } +