From 770f93061f65b378e8b396a802266a4dd11f5ca8 Mon Sep 17 00:00:00 2001 From: hoelee Date: Thu, 2 Apr 2026 10:05:00 +0800 Subject: [PATCH] feat(botfilter): add inspectRequest --- matcher.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matcher.go b/matcher.go index ca4e4077..714bb748 100644 --- a/matcher.go +++ b/matcher.go @@ -11,3 +11,7 @@ type matchResult struct { reason string } +func inspectRequest(r *http.Request, cfg *compiledConfig) matchResult { + paths := requestPaths(r) + userAgent := strings.TrimSpace(r.UserAgent()) +