-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Referrer policy for Google Fonts; encourage hosting the fonts instead #152
Comments
(Sorry for an embarrassingly late reply, finally got a chance to get back to the project.) Good point, the less tracking the better. I'm not yet sure how to expose this option (e.g., for local files or files on own domains it probably won't make sense), might also be useful in general for any/all Maybe an option that whitelists domains for which |
What I do is host the fonts, just to cut down on excess link meta data going elsewhere. |
@mosra, I think it's ok to unconditionally add the no-referrer attribute to full CSS URLs. Since they are usually 3rd party ones, in 99.9 % of the cases or so. Sure, one could add options for additional referrerpolicy management, for other links, later on. What I did is this: I overrode some template and changed the base template like this:
@egberts Yes, this solves the issue, as well. And actually it makes more sense. At that time I had the understanding that one big advantage of using a popular CDN (such as Google) for font delivery is this: The font you are requesting very likely is already cached because some other sites you previously accessed used the same font files! But this isn't true (anymore, for some time). Modern browsers are partitioning their cache to protect users from cache-side-channel based tracking/identification. So using a CDN only has one advantage: it saves you some bandwidth. Disadvantages are likely higher latency, referrer based tracking and a requirement for a more permissive Content-Security-Policy header. Thus, I recently also switched to locally hosting the font files (I followed this answer). |
Following the basic pelican setup one ends up with this configuration item:
With that setup, a visitor's browser is sending the currently visited page URL to Google in the
Referer:
request header for each font CSS request.Thus, in the spirit of protecting personal data it would be nice if the theme would add
referrerpolicy="no-referrer"
in the generated html link tags.Example:
Of course, for local CSS files the standard referrer policy still makes sense.
The text was updated successfully, but these errors were encountered: