feat(botfilter): add implausibleBrowser
This commit is contained in:
1 parent
297e60fd2e
commit
b74180e3ef
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