Documenter.jl icon indicating copy to clipboard operation
Documenter.jl copied to clipboard

Prevent leaking trackable pageview stats to CDNs by default

Open exaexa opened this issue 1 year ago • 2 comments

This is a kinda continuation of my previous comment here: https://github.com/JuliaDocs/Documenter.jl/issues/2159#issuecomment-1879633205 from #2159 .

It would be great if the generated HTML didn't send referrer URLs in headers, thus preventing the CDNs the default access to (very easily trackable) user page load stats by default. In turn, this would allow much better compliance with various privacy protection guidelines, incl. GDPR.

For the beginning, I think that just pasting a referrerpolicy="no-referrer" into all <link> tags that point to external CDNs would be more than sufficient. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#referrerpolicy for details there.

Thanks!

exaexa avatar Jan 06 '24 10:01 exaexa

This seems like a good thing to do, and should be a pretty easy change, if anyone wants to PR it.

mortenpi avatar Jan 15 '24 00:01 mortenpi

if anyone wants to PR it.

(I'd PR but I didn't have much time lately, so decided to go issue first in case anyone manages to get to this first)

EDIT: ok well in the end it didn't take that long lol.

exaexa avatar Jan 15 '24 05:01 exaexa