diff --git a/matcher.go b/matcher.go index 8c99b45b..80a852a7 100644 --- a/matcher.go +++ b/matcher.go @@ -79,3 +79,12 @@ func matchesBlockedExtension(paths, extensions []string) bool { return false } +func pathMatchesAny(requestPath string, rules []string) bool { + for _, rule := range rules { + if pathMatches(requestPath, rule) { + return true + } + } + return false +} +