diff --git a/matcher.go b/matcher.go index eb1b2f81..8c99b45b 100644 --- a/matcher.go +++ b/matcher.go @@ -68,3 +68,14 @@ func matchesBlockedPath(paths, blockedPaths []string) bool { return false } +func matchesBlockedExtension(paths, extensions []string) bool { + for _, requestPath := range paths { + for _, extension := range extensions { + if strings.HasSuffix(requestPath, extension) { + return true + } + } + } + return false +} +