From 6d94ec9b7776b83e1d1156f5adc97dfcbc969cd4 Mon Sep 17 00:00:00 2001 From: hoelee Date: Wed, 6 May 2026 11:12:00 +0800 Subject: [PATCH] feat(botfilter): matcher.go part 5/5 --- matcher.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/matcher.go b/matcher.go index a1a4fd01..96a58f90 100644 --- a/matcher.go +++ b/matcher.go @@ -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 +} +