Skip to content

Spoof or block HTTP referral header #1663

@omentic

Description

@omentic

Prerequisites

I tried to reproduce the issue when...

  • uBO is the only extension
  • uBO with default lists/settings
  • using a new, unmodified browser profile

Description

(The issue is present after disabling uBlock Origin in the browser.)

The HTTP referral header leaks potentially identifying and frequently unwanted information about the user.

A specific URL where the issue occurs

https://www.google.com/search?q=test+your+referrer+url+vividata

Steps to Reproduce

  1. Open the specific url above.
  2. Click on the first link in the search results: https://members.vividata.ca/test-your-referrer-url/
  3. Observe that the previous site can be found from the HTTP referrer.

Expected behavior

uBlock Origin could add blocking the HTTP referral header as a privacy setting.

There is (to my knowledge) no upside to the referral header, from a user experience.

Actual behavior

The referral header is not blocked or spoofed, and sites can find out the previous page you visited. This has privacy implications, particularly around fingerprinting - but more generally, it's just excess information that is usually used in a bad way.

Here's an example of the referral header being used for malicious purposes (click on the article link, potentially NSFW): https://news.ycombinator.com/item?id=3132752

uBlock Origin version

1.36.2

Browser name and version

Ungoogled Chromium 91.0

Operating System and version

Arch Linux 5.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions