feat(botfilter): matcher.go part 5/5
This commit is contained in:
1 parent
2925964f73
commit
ac60daa9b5
1 file changed
+10
+10
@@ -123,3 +123,13 @@ func implausibleBrowser(r *http.Request, userAgent string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
if value := r.Header.Get("Sec-Fetch-Site"); value != "" {
|
||||
switch value {
|
||||
case "same-origin", "same-site", "cross-site", "none":
|
||||
default:
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user