Skip to content

"::" entry in notracking hosts file blocks URLs containing "::"; parse notracking list #800

@Mathnerd314

Description

@Mathnerd314

Prerequisites

  • I verified that this is not a filter issue
  • This is not a support issue or a question
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue
    • Your issue may already be reported.
  • I tried to reproduce the issue when...
    • uBlock Origin is the only extension
    • uBlock Origin with default lists/settings
    • using a new, unmodified browser profile
  • I am running the latest version of uBlock Origin
  • I checked the documentation to understand that the issue I report is not a normal behavior

Description

uBlock says it supports hosts files so I added https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt. It seems to work fine except that the "::" at the beginning is interpreted as a filter and blocks some requests.

The other half of the notracking list is a Dnsmasq config file (https://github.com/notracking/hosts-blocklists/blob/master/domains.txt) with lines of the form address=/zzlayejqlzcg.com/:: and address=/zzzezeroe.fr/0.0.0.0; they seem to be parsed incorrectly as URL filters.

Unlike #576, notracking is a useful list not available in any formats uBlock supports. It contains many small lists not included elsewhere and the original sources are often in CSV or other strange formats.

A specific URL where the issue occurs

https://www.youtube.com/watch?v=spSxQjDguzM

Steps to Reproduce

  1. Blocked URL requests happen in the middle of YouTube videos like the linked URL. The playback stops and the spinner appears. The logger shows URLs from googlevideo.com are being blocked because they contain ::.
  2. URLs from the domain blocklist are not blocked

Expected behavior:

  • :: is ignored like the 0.0.0.0 IP address.
  • address= lines are parsed as hostname filters

Actual behavior:

  • :: is interpreted as a generic filter rule.
  • address lines are parsed as textual filters

Your environment

  • uBlock Origin version: 1.24.2
  • Browser Name and version: Firefox 71.0b12
  • Operating System and version: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedissue has been addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions