uBlock icon indicating copy to clipboard operation
uBlock copied to clipboard

Disconnect.me filter lists

Open elad opened this issue 11 years ago • 28 comments

Hey,

The recently published Tracking Protection in Firefox For Privacy and Performance reports blocking tracking improves browsing speed, especially when browsing popular (news) sites. They use filters from Disconnect and since I couldn't find them in the settings, I figured I'd make a note about it. Here are the filters I managed to find, all under GPLv3:

  • https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  • https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt
  • https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  • https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt

elad avatar May 25 '15 22:05 elad

You're are already better covered with uBlock's default settings: uBlock and others: Blocking ads, trackers, malwares.

gorhill avatar May 25 '15 23:05 gorhill

You're are already better covered with uBlock's default settings: uBlock and others: Blocking ads, trackers, malwares.

I'm using this Firefox feature together with uBlock (I also activated several optional filters) since a few weeks and on some sites (I especially noticed this on news sites) Firefox tells me that it blocked some content, so the Disconnect filters still block a few items that aren't covered by the other filters.

d4k0 avatar May 26 '15 01:05 d4k0

Firefox tells me that it blocked some content

Do you know for a fact that Firefox blocks the content after uBlock? If so, do you have a reference for this?

gorhill avatar May 26 '15 03:05 gorhill

From the document that @elad linked:

When the browser is ready to make a network request, Firefox suspends it until Tracking Protection determines whether the destination URL is a tracking domain. If so, Firefox cancels the request before any data is sent or received. Canceling HTTP requests leaves the respective content loaders for documents, images, and scripts in a failed state. The network layer notifies individual loaders of cancellations and emits a document-wide security event.

It seems to block the content before uBlock (sorry if my previous post gave the impression that it would block items after uBlock) which makes sense since this feature is implemented directly in Firefox (I think I also read somewhere that it works like this).

d4k0 avatar May 26 '15 03:05 d4k0

Firefox Tracking Protection is executed after uBlock (for me at least).

This can be easily observed by going to http://adguard.com/en/filterrules.html

Ublock enabled: ublock blocks googleads.g.doubleclick.net and mc.yandex.ru

Disable ublock: Firefox Tracking Protection icon shows up and Web Console shows Tracking Protection blocking googleads.g.doubleclick.net and mc.yandex.ru

Edit: FWIW I have also noticed Firefox Tracking Protection does cover certain things that uBlock-included rulesets dont. E.g. tracking protection kills some Google Plus integration/tracking on third-parties like youtube with ublock enabled.

gitarra avatar May 26 '15 10:05 gitarra

I imported all of the four lists as custom filter lists, and my number of network filters went from 52,833 to 63,733, so 10,900 more network filters. I should have tried that first, did not think about it.

However, simple_ad.txt seems to be almost all covered by current default filter lists, only 4 entries were used out of the 2,727 entries.

The 3 other filter lists do seem useful though:

a

gorhill avatar May 26 '15 12:05 gorhill

Even after adding those 4 filter lists to uBlock, Firefox Tracking Protection kicks in on YouTube.

Seems like it does some other magic as well than just blocking using those 4 domain lists.

gitarra avatar May 26 '15 15:05 gitarra

@gitarra it could be just a reporting quirk, this would need to be ruled out before concluding anything.

gorhill avatar May 26 '15 15:05 gorhill

@gorhill, I added those 4 custom lists, however a browser restart later, although they all still are in the editbox, only the first of them is listed under the "Custom" header. (Before the restart, it showed them all having the exact number of used filters as your screenshot)

Screenshot

FYI, This happened with the dev version before you implemented them by default (47e7405be9f6b52efd504949e7ee733930149fb4) Firefox nightly 41, v0.9.7.6

Betsy25 avatar May 26 '15 17:05 Betsy25

It's because after confirming that they are indeed not overlapping as I first thought, they are now in the list of stock filter lists. Check under "Malware domains" and "Privacy".

gorhill avatar May 26 '15 17:05 gorhill

Sure, I see now, this problem is, I was using the dev version where you didn't implement them by default yet. (The version with this as the last commit : 93a3965e53202d87aee87d152cc1344b6a3d92cd)

Betsy25 avatar May 26 '15 17:05 Betsy25

They still should appear in there, the list of filter lists is downloaded when a new version become available.

gorhill avatar May 26 '15 17:05 gorhill

EDIT: Doh! Sorry for the confusion.

Betsy25 avatar May 26 '15 17:05 Betsy25

Screenshot

They are there, and selected: "Malvertising filter list by Disconnect‎" etc.

gorhill avatar May 26 '15 17:05 gorhill

@gorhill Doesnt seem like a reporting quirk. The same request shows up in uBlock request log as allowed (no filter) and blocked by Firefox tracking protection in Web Console. Also Firefox tracking protection blocks widgets.outbrain.com/outbrain.js on cnn.com which isnt included in any of those four lists linked to above and is whitelisted in uBlock.

Looks like its safe to say uBlock cannot completely replace the built-in tracking protection in Firefox.

By the way heres the related Firefox bugs:

(tracking-protection) Provide Usable and Effective Third-Party Web Tracking Countermeasures (Meta): https://bugzilla.mozilla.org/show_bug.cgi?id=818337

tracking bug for tracking protection: https://bugzilla.mozilla.org/show_bug.cgi?id=1029886

gitarra avatar May 26 '15 18:05 gitarra

Firefox tracking protection blocks widgets.outbrain.com/outbrain.js on cnn.com which isnt included in any of those four lists linked to above and is whitelisted in uBlock

Disconnect used to block outbrain.com: uBlock vs Disconnect diff of filtering results (in red what Disconnect blocked and uBlock did not block, in green what uBlock blocked and Disconnect did not block.)

gorhill avatar May 26 '15 18:05 gorhill

I have a few questions.

  1. Are these links (4 filter lists) that @elad provided all the Disconnect blocklists? Are they original and therefore updated frequently?

  2. If Firefox Tracking Protection provides a complete alternative to these filter list links, isn't it better to enable only the Firefox Tracking Protection (without adding these lists to uBlock)? ~~It could result in a better performance due to direct Firefox implementation (as @d4k0 stated).~~ I just figured out that Facebook has recently enabled the ability to embed Facebook videos on other websites. Firefox Tracking Protection eliminates these videos. ~~In order to retain control it is better not to enable Firefox Tracking Protection. To load and show these kinds of videos properly, it is better to add the above 4 Disconnect blocklists (by @elad) in uBlock.~~

All the exceptions for the websites which implement these Facebook videos can be added using this filter (I found and added 2 websites -besides Facebook- as an example): ||facebook.*$domain=~facebook.com|~24ur.com|~planet.si

EDIT: In case we are using enabled Firefox Tracking Protection instead of uBlock with Disconnect blocklists, we will also have to manually disable each exception website within Firefox Tracking Protection (in addition to the above-mentioned filter).

gituporabnik avatar May 26 '15 19:05 gituporabnik

@elad Thanks ! I was looking for those lists. @gorhill Thanks for adding the useful Diconnect's lists to the available filter lists. @lencc 1) I think Firefox Tracking Protection uses more than these 4 lists, see the previous comments by gorhill. Yes, they are provided by Disconnect.me so they should be updated frequently. 2) Firefox Tracking Protection isn't a complete alternative but is already part of Firefox. Whether you chose it or an extension with filter lists, the loading time will be improved (see this gHacks article and gorhill's benchmarks)

Snapy avatar May 26 '15 21:05 Snapy

@Snapy Thank you! I hope the remaining Disconnect blocklists will be added in the future.

I disabled Firefox Tracking Protection and now I only use uBlock to keep control over websites (because of Facebook embedded videos etc.).

gituporabnik avatar May 26 '15 21:05 gituporabnik

@lencc You can disable Firefox Tracking Protection per site but uBlock is more flexible especially with the upcoming Dynamic URL filtering.

Snapy avatar May 26 '15 22:05 Snapy