From ac60daa9b56c1292885d636d20e09513738fac74 Mon Sep 17 00:00:00 2001 From: hoelee Date: Tue, 12 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 +} +