From 1dedeab625732ab69436659c9dbf1219f845057e Mon Sep 17 00:00:00 2001 From: hoelee Date: Tue, 14 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()) +