Skip to content

Option to block third-party fonts? #1787

Description

@jkleint

Is it possible to block only third-party fonts? I understand many people want to block all remote fonts for security reasons, and that option should stay; however, many websites use fonts hosted on their own domain for icons, and blocking all remote fonts makes these impossible to see (as well as not rendering text in custom fonts, of course).

For example, here is part of the navigation bar from http://www.cnn.com normally (with remote fonts enabled):

cnn-icon-font-unblocked

And here it is with remote fonts blocked:

cnn-icon-font

The magnifying glass icon has been replaced by a box with the hex value of the Unicode character in it. You can test this by checking "Block remote fonts" under "Default Behavior" in the uBlock settings and browsing to cnn.com.

From the uBlock logs, you can see that fonts from the domain cnn.com are being blocked with the no-remote-fonts rule:

font-block-log

This is with uBlock Origin v1.7.6 on Firefox 47.

It would be nice to be able to block third-party fonts to prevent third-party tracking, while still allowing first-party fonts for usability and styling.

As a workaround, you can use Fanboy's Thirdparty Fonts filter list. Lists, of course, require manual curation and have some overhead. It seems like blocking third-party fonts in uBlock would be simple, efficient (making use of information uBlock already has: "is this a font?" "is it from the same origin?"), and could pro-actively provide better tracking protection than lists.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions