Skip to content

Commit 6569655

Browse files
committed
Be explicit that last-matching-rule wins on negations
1 parent a9fb5b2 commit 6569655

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

COMPACT_DENYLIST_FORMAT.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ hints:
143143
/ipfs/Qmah2YDTfrox4watLCr3YgKyBwvjq8FJZEFdWY6WtJ3Xt2/test*
144144
/ipfs/QmTuvSQbEDR3sarFAN9kAeXBpiBCyYYNxdxciazBba11eC/test/*
145145
146-
# Block some subpaths with exceptions
146+
# Block some subpaths with exceptions: last-matching-rule wins (!)
147147
/ipfs/QmUboz9UsQBDeS6Tug1U8jgoFkgYxyYood9NDyVURAY9pK/blocked*
148148
+/ipfs/QmUboz9UsQBDeS6Tug1U8jgoFkgYxyYood9NDyVURAY9pK/blockednot
149149
+/ipfs/QmUboz9UsQBDeS6Tug1U8jgoFkgYxyYood9NDyVURAY9pK/blocked/not
@@ -381,8 +381,7 @@ blocks get assembled into an actual files. That should cover gateway usage.
381381

382382
#### Allow (or negated) rules
383383

384-
Block items can be prepended by `+`, that items matching the rule are to be allowed
385-
rather than blocked.
384+
Block items can be prepended by `+`, which means that items matching the rule are to be allowed rather than blocked.
386385

387386
This can be used to undo existing rules, but also to add concrete exceptions to wider rules. Order matters, and Allow rules must come AFTER other existing rules.
388387

0 commit comments

Comments
 (0)