feat(botfilter): add implausibleBrowser
This commit is contained in:
1 parent
1fe889c4e3
commit
256f672ed6
1 file changed
+6
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user