Family sign in
Tech

Why my Pi-hole was letting ads through

Pi-hole was running, blocking, and still ads kept showing up. Two quiet mistakes were to blame: a router handing out a second DNS server, and blocklists that were really web pages.

November 30, 2026 · James · 2 min read

Pi-hole blocks ads for the whole house by refusing to look up ad and tracking addresses. Mine was up, the dashboard looked healthy, and yet ads kept creeping back. It turned out to be two separate problems, and neither one showed up as an error anywhere.

Problem one: a back door through the router

My router was handing out two DNS servers to every device: Pi-hole first, and the router itself second. That sounds like a sensible backup, but devices don't use the list strictly in order. Phones, TVs and Windows PCs often ask both and use whichever answers first.

A quick test showed the problem clearly. I looked up five well-known ad domains on each server. Pi-hole blocked all five. The router happily gave real addresses for all five.

The fix was in the router's DHCP settings: Pi-hole as the only DNS server, and the "advertise the router's IP as DNS too" option turned off. That option is a classic on ASUS routers. The trade-off is that if the Pi-hole VM goes down, nothing on the network can look anything up. The plan is a second Pi-hole on another machine, kept in sync, so either one can go down without anyone noticing.

Problem two: blocklists that were web pages

Pi-hole had three blocklists. The first, the well-known StevenBlack hosts list, was fine. The other two were meant to be HaGeZi's excellent "Pro++" list, but the addresses I'd pasted in were the GitHub web pages that display the list, not the list file itself.

Pi-hole downloaded those pages every week, threw away thousands of lines of HTML, and kept a few hundred scraps of page code that matched nothing real. No error, no warning: just a list that did nothing.

The fix was to use the raw file address, which starts with raw.githubusercontent.com instead of github.com/.../blob/.... After rebuilding, Pi-hole went from about 82,000 blocked domains to 343,000.

While I was in there

  • Updates: Pi-hole was a few versions behind, and its Debian VM had a stack of updates waiting. A snapshot first, then both, then a reboot for the new kernel.
  • Checking the fix: after each change, the same ad domains came back as 0.0.0.0 (blocked), while normal sites like YouTube, Netflix and Amazon still worked.

What DNS blocking can't do

YouTube ads come from the same servers as the videos, so blocking them at the DNS level would block YouTube itself. For those you need an ad blocker in the browser. And a device using a VPN app sends its lookups through the VPN, which skips Pi-hole entirely.

The lesson

When you paste a blocklist from GitHub, open the address you pasted. If you see a web page with menus and buttons, you've got the wrong link. Then check Pi-hole's list page for "invalid domains". Thousands of them means you're blocking a web page, not a list.