fix(default-config): sometimes browsers don't send Upgrade-Insecure-Requests (#1189)
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
a12b4bb755
commit
00261d049e
2 changed files with 14 additions and 2 deletions
|
|
@ -107,7 +107,6 @@ bots:
|
||||||
- '"Sec-Fetch-Dest" in headers'
|
- '"Sec-Fetch-Dest" in headers'
|
||||||
- '"Sec-Fetch-Mode" in headers'
|
- '"Sec-Fetch-Mode" in headers'
|
||||||
- '"Sec-Fetch-Site" in headers'
|
- '"Sec-Fetch-Site" in headers'
|
||||||
- '"Upgrade-Insecure-Requests" in headers'
|
|
||||||
- '"Accept-Encoding" in headers'
|
- '"Accept-Encoding" in headers'
|
||||||
- '( headers["Accept-Encoding"].contains("zstd") || headers["Accept-Encoding"].contains("br") )'
|
- '( headers["Accept-Encoding"].contains("zstd") || headers["Accept-Encoding"].contains("br") )'
|
||||||
- '"Accept-Language" in headers'
|
- '"Accept-Language" in headers'
|
||||||
|
|
@ -115,6 +114,13 @@ bots:
|
||||||
weight:
|
weight:
|
||||||
adjust: -10
|
adjust: -10
|
||||||
|
|
||||||
|
# The Upgrade-Insecure-Requests header is typically sent by browsers, but not always
|
||||||
|
- name: upgrade-insecure-requests
|
||||||
|
expression: '"Upgrade-Insecure-Requests" in headers'
|
||||||
|
action: WEIGH
|
||||||
|
weight:
|
||||||
|
adjust: -2
|
||||||
|
|
||||||
# Chrome should behave like Chrome
|
# Chrome should behave like Chrome
|
||||||
- name: chrome-is-proper
|
- name: chrome-is-proper
|
||||||
expression:
|
expression:
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,6 @@
|
||||||
- '"Sec-Fetch-Dest" in headers'
|
- '"Sec-Fetch-Dest" in headers'
|
||||||
- '"Sec-Fetch-Mode" in headers'
|
- '"Sec-Fetch-Mode" in headers'
|
||||||
- '"Sec-Fetch-Site" in headers'
|
- '"Sec-Fetch-Site" in headers'
|
||||||
- '"Upgrade-Insecure-Requests" in headers'
|
|
||||||
- '"Accept-Encoding" in headers'
|
- '"Accept-Encoding" in headers'
|
||||||
- '( headers["Accept-Encoding"].contains("zstd") || headers["Accept-Encoding"].contains("br") )'
|
- '( headers["Accept-Encoding"].contains("zstd") || headers["Accept-Encoding"].contains("br") )'
|
||||||
- '"Accept-Language" in headers'
|
- '"Accept-Language" in headers'
|
||||||
|
|
@ -99,6 +98,13 @@
|
||||||
weight:
|
weight:
|
||||||
adjust: -10
|
adjust: -10
|
||||||
|
|
||||||
|
# The Upgrade-Insecure-Requests header is typically sent by browsers, but not always
|
||||||
|
- name: upgrade-insecure-requests
|
||||||
|
expression: '"Upgrade-Insecure-Requests" in headers'
|
||||||
|
action: WEIGH
|
||||||
|
weight:
|
||||||
|
adjust: -2
|
||||||
|
|
||||||
# Chrome should behave like Chrome
|
# Chrome should behave like Chrome
|
||||||
- name: chrome-is-proper
|
- name: chrome-is-proper
|
||||||
expression:
|
expression:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue