Privacy Badger

On this page 7

Privacy Badger is a free, open-source browser extension developed by the Electronic Frontier Foundation (EFF) that blocks third-party trackers based on how they behave rather than on a hand-curated list of advertising domains. In privacy, and specifically in the topic of tracking, it is the best-known example of a heuristic tracker blocker: a tool that decides what to block by observing whether a domain appears to follow the user across unrelated websites.

The extension was first released in 2014 and runs in major desktop browsers built on Chromium and in Firefox. It also sends the Global Privacy Control signal, historically sent Do Not Track, and removes certain forms of link tracking from search and social media pages.

How Privacy Badger decides what to block

Privacy Badger classifies a third-party domain as a tracker when it observes that domain collecting identifiers across multiple unrelated first-party sites. The core heuristic counts distinct sites: when the same third party appears to track the user on three or more different websites, the extension treats it as a tracker and begins blocking it.

Tracking evidence includes setting or reading high-entropy cookies, using local storage for identifiers and performing certain canvas fingerprinting operations. A cookie value that looks like a unique identifier counts as evidence, whereas low-entropy values such as a language preference do not. This approach lets the tool catch new or obscure trackers that list-based blockers have not yet cataloged.

Each domain ends up in one of three blocking states, shown to the user as a slider in the extension popup. The table below explains them.

StateBehaviorTypical reason
AllowedRequests and cookies pass normallyNo tracking observed, or domain honors the EFF policy
Cookie blockedRequests load but cookies and referrers are strippedDomain is needed for site function but tracks
BlockedAll requests to the domain are canceledConfirmed cross-site tracker with no functional exception
Blocking states used by Privacy Badger

The middle state relies on a yellowlist of domains, such as content delivery networks, whose full blocking would break common websites. For those domains the extension removes the tracking capability while keeping the content.

Local learning versus the pre-trained list

Privacy Badger originally learned entirely on the user’s device, building its block list from that person’s own browsing. Security researchers later showed that a locally learned block list is itself a fingerprint: a website could probe which domains were blocked and infer browsing history or distinguish individual users.

In response, EFF changed the default in 2020. The extension now ships with a pre-trained tracker list generated by automated crawls of popular websites, and local learning is disabled by default. Users can still turn it on, accepting the fingerprinting trade-off in exchange for a list tailored to their own browsing.

ModeSource of block decisionsMain advantageMain risk
Pre-trained (default)Regular automated crawls by EFFSame list for all users, harder to fingerprintMay miss trackers on niche sites
Local learning (optional)The user’s own browsingAdapts to sites the user visitsUnique list can identify the user
Comparison of learning modes

Additional protections built into the extension

Beyond blocking, Privacy Badger bundles several features aimed at specific tracking techniques. They complement the behavioral engine and address cases that domain blocking alone cannot solve.

  • Global Privacy Control signal: tells websites the user objects to the sale or sharing of personal data, which carries legal weight in some jurisdictions such as California.
  • Widget replacement: swaps embedded social buttons and some video players for click-to-activate placeholders, so the third party loads only when the user chooses.
  • Link tracking removal: strips redirect wrappers and link decoration from outbound links on some major search and social platforms.
  • EFF Do Not Track policy: domains that publicly commit to the policy are unblocked, giving companies an incentive to stop tracking.

These protections reflect EFF’s view that a blocker should also create incentives for better behavior, not merely suppress requests.

Privacy Badger compared with other tracker blockers

Privacy Badger differs from mainstream content blockers mainly in how it identifies trackers and what it leaves alone. It does not block advertisements as such; an ad that does not track across sites can still appear. The table below sets it against other approaches in the same topic.

Tool or featureDetection methodBlocks ads without trackingTypical use
Privacy BadgerBehavioral heuristics and pre-trained listNoLow-maintenance tracker protection
uBlock OriginCommunity filter lists and custom rulesYesBroad content and ad blocking
Enhanced Tracking ProtectionBuilt-in Firefox listsPartlyDefault protection with no extension
Intelligent Tracking PreventionMachine-learning classification in SafariNoCookie and storage restrictions
How Privacy Badger differs from other approaches

Many privacy-conscious users run Privacy Badger alongside a list-based blocker. The overlap is large, but the behavioral engine can catch trackers that lists miss, while lists handle advertising and annoyances outside Privacy Badger’s scope.

Limitations and common misconceptions

Privacy Badger is effective against third-party cross-site tracking but does not provide complete anonymity. It cannot stop first-party tracking, server-side data sharing, IP-based correlation or tracking by the browser vendor itself.

MisconceptionActual situationPractical consequence
It is an ad blockerIt blocks trackers, not ads in generalNon-tracking ads still appear
It hides the IP addressNetwork identity is untouchedA VPN or Tor Browser is needed for that
It stops all fingerprintingOnly some fingerprinting scripts are detectedAdvanced device fingerprinting may persist
It blocks first-party analyticsSame-site tracking is out of scopeSite owners can still measure visits
Misconceptions and the actual situation

Changes to browser extension platforms, notably Manifest V3 in Chromium browsers, restrict how extensions intercept requests. Privacy Badger has adapted to these constraints, but platform rules ultimately limit what any extension can block.

In simple terms

Privacy Badger is a small add-on for a web browser that watches for companies following a person from one website to another. If the same hidden company shows up on several unrelated sites and seems to recognize the visitor each time, the add-on concludes it is tracking and cuts off its access.

Think of a security guard who notices the same stranger appearing in every shop someone visits. The guard does not need a list of known suspects; the pattern itself is enough. It works quietly in the background and needs almost no setup.

A practical example

A freelance journalist researching health topics installs Privacy Badger in Firefox because she does not want advertisers to link her medical research to her identity. She visits about 30 news, health and forum sites over a week. The popup typically shows between 5 and 25 third-party domains per page, with several marked as blocked and a few, such as a content delivery network, set to cookie blocked so that images still load.

On a health forum, an embedded social media share button is replaced by a placeholder, so the social network never receives the page address. When she enables Global Privacy Control in combination with the extension, a news site she visits in California treats her as having opted out of data sale. The outcome is a noticeably smaller tracking footprint without the site breakage she had experienced with stricter blocking tools.