feat(botfilter): add matchesBlockedPath
This commit is contained in:
1 parent
9004b917be
commit
9030bb6102
1 file changed
+9
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user