Security

How Ad and Tracker Blocking Works

A blocker stops your browser from talking to sites known for ads, tracking, and scams. Here is how it works, in plain words.

One page, many sites.

A web page rarely comes from one place. The article you came for arrives from the site you chose, but the page then asks your browser to fetch more pieces from other companies: ads, visitor counters, and share buttons.

Each of those companies learns that you opened the page. A company with pieces on many sites can follow you from one site to the next.

Open a Page
news.example Ad Counter Share ads.example counter.example share.example

What Each Company Has Seen

  • ads.example Ads
    news.example
  • counter.example Visitor Counters
    news.example
  • share.example Share Buttons
    news.example

Three other companies learned that you opened this page.

A blocker works from lists.

Groups who watch for these sites keep lists of site names known for ads, tracking, scams, or harmful software. Before your browser contacts a site, a blocker checks the name against its lists. If the name is listed, the request is never sent.

Check a Name
The List ads.example counter.example secure-login.example.net Your Browser The Site

ads.example is on the list, so the request is never sent.

What blocking gets you.

Fewer companies see what you read. Pages often load faster, because your browser skips the extra pieces. And a scam site that's on a list is turned away, even if you click a bad link.

news.example Ad Counter Share ads.example counter.example share.example
What Loads The article and three extra pieces
  • secure-login.example.netA scam site that is on a list.
    Not Clicked

The blocker is off. Three other companies see this page.

What blocking can't do.

Lists can't catch everything. New scam sites appear every day, so a harmful site may get through before a list catches up. Sometimes a safe site is blocked by mistake, or a page stops working because a piece it needs is on a list. A good blocker tells you what it stopped and lets you allow a site you trust.

A New Scam Site

  • prize-claim.exampleIt appeared today.
    Not on the List Yet

A Safe Site Blocked by Mistake

  • recipes.exampleA site you trust.
    Blocked by Mistake

A list can miss a new scam site, or block a safe site by mistake.

How Bastion blocks.

Bastion Browser's blocker stops Bastion from contacting sites known for ads, tracking, scams, or harmful software. For ads and tracking it uses OISD Big, and downloads a fresh copy every week. For scams and malware it uses HaGeZi Threat Intelligence (medium) and HaGeZi Fake, and downloads fresh copies every 3 hours. Bastion downloads the lists the first time it starts, and blocking begins once they arrive.

A blocked page names the list that caught it, and the footer counts what was stopped on each tab. If you trust a blocked site, you can allow it.

Bastion's Lists

  • OISD BigAds and tracking. A fresh copy every week.
    Caught 3
  • HaGeZi Threat Intelligence (medium)Scams and malware. A fresh copy every 3 hours.
  • HaGeZi FakeScams and malware. A fresh copy every 3 hours.
news.example
  • Ad
  • Visitor Counter
  • Share Button
3 Blocked

Bastion stopped three ad and tracking pieces, and the footer counts them.

Bastion also blocks third-party cookies, so advertisers inside a page can't use cookies to follow you. Secure DNS adds a second check: Quad9 refuses to look up known scam and malware sites. Read What Is Secure DNS? and What Is Browser Fingerprinting?