Skip to content

Connections to blocked hosts due to Early Hints #3888

@ElhemEnohpi

Description

@ElhemEnohpi

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

Description

In Firefox with Early Hints preconnect enabled (default since 120), connections are made to hosts even when the destination hosts are fully blocked in uBlock.

A specific URL where the issue occurs.

https://medium.com

Steps to Reproduce

  1. install uBlock Origin in a fresh Firefox profile
  2. create a rule: * google.com * block
  3. go to medium.com

Expected behavior

No connection to google.com

Actual behavior

Firewall (Little Snitch) shows a connection attempt to www.google.com (not only a DNS lookup), even though uBlock shows it as blocked. It looks like no actual data is exchanged, but there is a socket connection to Google, that exposes metadata.

If you go to about:config and toggle false: network.early-hints.preconnect.enabled and repeat the steps, there is no connection attempt detected. Workaround is to keep this disabled, though it reduces performance.

The medium.com page HTML also has <link data-rh="true" rel="preconnect" href="[https://www.google.com](view-source:https://www.google.com/)"/> but this is not the source of the issue; that can be confirmed by disabling network.preconnect, which controls HTML links. The source is "103 Early Hints" from the server.

uBO version

1.68.0

Browser name and version

Firefox Developer 146.0b9 and any other version since 120.

Operating System and version

macOS 26.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Firefoxspecific to Firefoxexternalissue involving an external factor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions