DEV Community

William Smith
William Smith

Posted on Originally published at deepfilter.uk

DNS Filtering vs Browser Ad Blockers: What's the Difference and Which Do You Need?

If you have ever tried to get rid of adverts, you have probably installed a browser extension. It works well on your laptop. Then you pick up your phone, open a free game or switch on the smart TV, and the adverts are back.

That is because a browser ad blocker and a DNS filter work in very different places. Understanding the difference helps you choose the right tool, or the right combination, for your household or office.

How a browser ad blocker works

A browser extension sits inside one browser on one device. As each web page loads, it checks the page's requests against its filter lists and stops the ones that match. Many extensions also hide the empty spaces where adverts would have been, a technique known as cosmetic filtering.

Because it sees the page itself, an extension can be very precise. It can remove a single element from a page while leaving the rest untouched.

The limitation is scope. It only protects that one browser. It does nothing for other browsers on the same machine, for apps, for games, for your TV, or for anything happening in the background of your operating system.

How DNS filtering works

Before any device can load content, it asks a DNS server to turn a name, such as an advert network's domain, into an address. A filtering DNS service simply declines to answer for domains known to serve adverts, tracking, malware or phishing. With no address, the unwanted content never loads.

Because this happens at the network layer rather than inside an app, it applies to anything that uses that DNS server. Deep Packet Filter (DPF) works this way. It blocks adverts, tracking domains, telemetry, malware and phishing before they reach your device, and there is no software to install. You just change two DNS addresses.

What each approach can and cannot block

Browser ad blocker DNS filtering
Adverts in web pages Yes, in that browser Yes, on any device using the filter
Adverts inside mobile apps and games No Yes
Smart TVs, consoles and IoT devices No (extensions cannot run there) Yes, if set on the device or router
Operating system telemetry No Yes, where it uses separate domains
Malware and phishing domains Some extensions Yes
Adverts served from the same domain as the content Often Usually not
Tidying up empty advert spaces Yes No
Setup Per browser, per device One DNS change per device, or once on the router

Where DNS filtering shines

  • Everything on the network. A single change on your router covers phones, tablets, laptops and smart TVs, including devices that offer no settings of their own.
  • In-app adverts. Free games and streaming apps are a major source of adverts that extensions simply cannot reach. DPF blocks adverts inside mobile apps, games and smart TV applications.
  • Background traffic. Telemetry, analytics and auto-reporting happen whether or not a browser is open. Blocking them at DNS level saves bandwidth and keeps that data from leaving your network.
  • Security as well as adverts. DPF's phishing protection is updated continuously from multiple threat feeds, and it blocks known malware distribution and ransomware callback domains.

Where DNS filtering has limits

It is worth being honest about the gaps. DNS filtering works on whole domains. If a site serves its adverts from the same domain as its main content, blocking that domain would break the site, so those adverts usually get through. DNS filtering also cannot tidy up a page layout, so you may sometimes see a blank space where an advert used to be.

Occasionally a blocked domain is one you actually need. DPF Access includes white-list and black-list controls, so you can allow or block specific domains yourself.

Finally, some browsers can use their own encrypted DNS, which bypasses the filter set on your device or router. If adverts appear in one browser but not others, check its secure DNS setting.

Speed and bandwidth

Every advert, tracker and telemetry call is data your connection has to fetch. According to DPF, about 70% of data delivered to users was never requested, and the service removes it before it arrives. That matters most on busy home connections, mobile data and slow links. DPF is used by airlines on high-latency satellite, ATG and EAN networks, where every byte counts.

A browser extension can also reduce page weight, but only for web pages in that browser. It cannot help with what apps and devices download in the background.

What about privacy?

Any DNS service sees the names your devices look up, so it is reasonable to ask what happens to that information. DPF's privacy policy states that it does not inspect, log or store the content of your DNS queries beyond what is necessary for filtering. Blocked queries are logged in aggregate, not individually, for blocklist maintenance. Queries that pass through are forwarded to upstream resolvers and are not stored or associated with your identity. The policy also states that data is not sold to third parties.

So which do you need?

It depends on what you are trying to protect.

  • One laptop, mostly web browsing: a browser extension may be all you need.
  • A family home with phones, tablets and a smart TV: DNS filtering covers far more ground, including the apps and devices where adverts are hardest to avoid.
  • A small office or business: DNS filtering set on the router or DHCP server protects every workstation and device at once, without installing anything on each machine.
  • The most thorough setup: use both. DNS filtering handles the network, apps, telemetry and malicious domains, while an extension tidies up the occasional same-domain advert in your main browser.

If you decide on DNS filtering, the next question is where to apply it. Our guide Router or Device? Where to Set Up DNS Ad Blocking at Home or Work covers that in detail, and the DPF DNS setup guide has step-by-step instructions for Windows, macOS, Android, iPhone and iPad, routers and smart TVs.

Try Deep Packet Filter

DPF Access costs £5.49 a month, or £54.90 a year, with no contract. Once you choose a plan, your primary and secondary DNS addresses arrive by email in your access ticket. Enter them on your router or devices and protection is active straight away, with no reboot needed. For organisations that want their own dedicated instance with an admin dashboard and per-user controls, DPF Commercial is £59 a month.

Real UK engineers are available 24/7 on freephone 0808 304 8316 if you need a hand. See the plans and get started on the Deep Packet Filter home page.

Originally published at https://deepfilter.uk/blog/dns-filtering-vs-browser-ad-blockers-what-s-the.html

Top comments (0)