examples: clarify rules order, default action and standard-tools rule

This commit is contained in:
WeebDataHoarder
2025-04-27 20:53:30 +02:00
parent 666ffa574a
commit d36d8354a2
2 changed files with 8 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ conditions:
- 'userAgent.matches("^Mozilla/[1-4]")'
# Rules are checked sequentially in order, from top to bottom
rules:
- name: allow-well-known-resources
conditions:
@@ -144,6 +144,7 @@ rules:
conditions:
- 'userAgent.startsWith("Lynx/")'
# Comment this rule out to not challenge tool-like user agents
- name: standard-tools
action: challenge
settings:
@@ -159,3 +160,5 @@ rules:
challenges: [preload-link, meta-refresh, resource-load, js-pow-sha256]
conditions:
- '($is-generic-browser)'
# If end of rules is reached, default is PASS