diff options
| author | luccioman <luccioman@users.noreply.github.com> | 2017-02-28 18:11:54 +0100 |
|---|---|---|
| committer | luccioman <luccioman@users.noreply.github.com> | 2017-02-28 18:11:54 +0100 |
| commit | cdcd923375fd9f2c55221812e96c01f6dcd25e1b (patch) | |
| tree | 5044a98602be92e5012d7fcd20d5c407dd14af6d /htroot/env | |
| parent | 86534a56f7c23c05be032a80e4a26b5b459017a3 (diff) | |
Privacy enhancement : added settings to control referrer policy.
HTTP "Referer" header sent by the browser when using YaCy can now be
controlled either with the referrer meta tag as a global policy, or only
for search result links by adding the attribute rel="noreferrer".
To improve privacy with the less possible regressions, the default is
set as meta tag with value "origin-when-cross-origin" : internal YaCy
links behavior is not affected, but when visiting external websites
referrer url is not empty but stripped from query parameters and path.
Older browsers, Safari, MS IE and Edge do not support the referrer meta
tag, so the standard but less flexible noreferrer link type can also be
enabled as an alternative.
User-friendly settings page to be implemented.
Diffstat (limited to 'htroot/env')
| -rw-r--r-- | htroot/env/templates/metas.template | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/htroot/env/templates/metas.template b/htroot/env/templates/metas.template index bc5ce7a10..30e62e4d9 100644 --- a/htroot/env/templates/metas.template +++ b/htroot/env/templates/metas.template @@ -4,6 +4,7 @@ <meta name="keywords" content="YaCy HTTP search engine spider indexer java network open free download Mac Windows Linux Software development" />
<meta name="description" content="Software HTTP Freeware Home Page" />
<meta name="copyright" content="Michael Christen et al." />
+ <meta name="referrer" content="#[referrer.meta.policy]#"/>
<!-- Ensure proper rendering and touch zooming on mobile devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
|
