-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
no-remote-fonts should block connections to fonts.googleapis.com and typekit.net #663
Comments
... Is it not working as intended then? Just block CSS requests to a given hostname. |
@CrisBRM even if you don't mind downloading useless resources, I showed that Typekit CSS files include the fonts built-in, so no, the toggle isn't working as intended. |
Yeah, it's built in. So what? It doesn't connect to third party hostnames to fetch them (since you're already connected to that domain), so you're not any less or any more fingerprintable. |
You have to use a filter to block those. Try this one: https://www.fanboy.co.nz/fanboy-antifonts.txt |
@vdcbb Thank you, but I've been here since the beginning. I just want gorhill to be aware of this. The point is that I do not want to block them universally, but just for the sites for which I've disabled remote fonts. gorhill will understand what I have in mind and consider my report. |
@anewuser has a point about inline fonts: the main benefit of blocking remote fonts is security, and not blocking inline fonts bypass the main intent. I expect this can be resolved by injecting a proper content security policy directive. The other aspect, the loading of CSS files which are strictly for font-purpose only, is more debatable. This would means to take on the manual task of creating and maintaining a list of such resources, and to add "hacky" code to uBlock to transpose these specific resources into font resources so that they are blocked/allowed as per the |
Some altruistic volunteer will have to step up to create a specific font-blocking lists. |
I have this rule and it does block the direct download of web fonts:
However, connections to fonts.googleapis.com are still made to download its CSS containers for the fonts. Example page: http://geektv.me/watch-online/the-simpsons
Here's the contents of https://fonts.googleapis.com/css?family=Maven+Pro:400,700,500,900 , as an example:
It seems to attempt to load the font locally first, but since most users don't have those fonts, it's downloaded from Google instead, making these CSS connections pointless in case you're blocking remote fonts.
On sites that use typekit.net, such as this page, uBlock still also let Firefox connect to use.typekit.net and download a CSS file that includes the font encoded in base64, even if you've blocked remote fonts:
Firefox 41 Beta
uBlock 1.0.0.1
The text was updated successfully, but these errors were encountered: