feat(botfilter): add matchesBlockedPath

This commit is contained in:
hoelee committed 2026-04-17 14:33:00 +08:00
1 parent 2f0b3534e6
commit f66e9a32e6
1 file changed
+9
+9
View File
@@ -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
}