From 83814944ec403ab9d754b32a546e050e87ec3d0c Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 23 Aug 2022 14:51:07 +0200 Subject: [PATCH] qutebrowser: set referer,do-not-track headers --- .config/qutebrowser/config.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index dc508d9..f7e4b31 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -137,6 +137,28 @@ c.content.mouse_lock = 'ask' # Type: String config.set('content.headers.accept_language', '', 'https://matchmaker.krunker.io/*') +# Custom headers for qutebrowser HTTP requests. +# Type: Dict +c.content.headers.custom = {} + +# Value to send in the `DNT` header. When this is set to true, +# qutebrowser asks websites to not track your identity. If set to null, +# the DNT header is not sent at all. +# Type: Bool +c.content.headers.do_not_track = True + +# When to send the Referer header. The Referer header tells websites +# from which website you were coming from when visiting them. Note that +# with QtWebEngine, websites can override this preference by setting the +# `Referrer-Policy:` header, so that any websites visited from them get +# the full referer. No restart is needed with QtWebKit. +# Type: String +# Valid values: +# - always: Always send the Referer. +# - never: Never send the Referer. This is not recommended, as some sites may break. +# - same-domain: Only send the Referer for the same domain. This will still protect your privacy, but shouldn't break any sites. With QtWebEngine, the referer will still be sent for other domains, but with stripped path information. +c.content.headers.referer = 'same-domain' + # User agent to send. The following placeholders are defined: * # `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: # The underlying WebKit version (set to a fixed value with