mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-14 20:48:44 +00:00
chore(default-config): add chromey version number check
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user