From f66e9a32e645e7691ffd1ee48ef946f524e35cc7 Mon Sep 17 00:00:00 2001 From: hoelee Date: Fri, 17 Apr 2026 14:33:00 +0800 Subject: [PATCH] feat(botfilter): add matchesBlockedPath --- matcher.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/matcher.go b/matcher.go index 94d6c5ec..eb1b2f81 100644 --- a/matcher.go +++ b/matcher.go @@ -59,3 +59,12 @@ func containsToken(value string, tokens []string) bool { return false } +func matchesBlockedPath(paths, blockedPaths []string) bool { + for _, requestPath := range paths { + if pathMatchesAny(requestPath, blockedPaths) { + return true + } + } + return false +} +