chore(default-config): add chromey version number check

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-11-03 16:24:33 -05:00
parent 83a83e9691
commit 9339016910
3 changed files with 21 additions and 0 deletions

View File

@@ -134,6 +134,16 @@ bots:
weight:
adjust: -5
# Chrome should send versions of form 130.0.0.0 in its user agent string.
- name: chrome-version-simplified
expression:
all:
- userAgent.contains("Chrome")
- userAgent.matches("Chrome/1[3-9][0-9]\\.0\\.0\\.0")
action: WEIGH
weight:
adjust: -5
- name: should-have-accept
expression: '!("Accept" in headers)'
action: WEIGH

View File

@@ -118,6 +118,16 @@
weight:
adjust: -5
# Chrome should send versions of form 130.0.0.0 in its user agent string.
- name: chrome-version-simplified
expression:
all:
- userAgent.contains("Chrome")
- userAgent.matches("Chrome/1[3-9][0-9]\\.0\\.0\\.0")
action: WEIGH
weight:
adjust: -5
- name: should-have-accept
expression: '!("Accept" in headers)'
action: WEIGH