
Disclosure: As an Amazon Associate I earn from qualifying purchases.
Browser ad blockers only protect one browser on one computer. Pi-hole protects the whole house: install it once on a small Pi, and every phone, tablet, TV, and game console on your WiFi stops loading most ads and trackers — including the ones in apps, where no browser extension can reach.
Get the full kit → jumps to the parts list. This is Project 02 in the series — it builds on the Project 00 starter kit, and yesterday’s retro console build is the fun one to show off after.
How It Works (One Paragraph)
Every device on your network asks a DNS server “where is this website?” dozens of times a minute — including the ad and tracker domains hiding inside apps and smart TVs. Pi-hole becomes that DNS server. When a request matches its blocklists, Pi-hole answers “nowhere” and the ad never loads. Everything else passes through untouched. It’s simple, it’s fast, and because it works at the network level, it covers devices you can’t install anything on.
What You’ll Need
Pi-hole sips resources — it runs happily on the smallest modern Pi, which keeps this build cheap. Prices are estimates checked in October 2026.
- Raspberry Pi Zero 2 W — ~$15 est. More than enough computer for DNS duty. Already have a spare Pi 3, 4, or 5? Use it and this build costs almost nothing — a dedicated small board is just tidier.
- 32GB microSD card — Samsung EVO Select 32GB, ~$10 est. Pi-hole logs queries, so a genuine card matters more than a big one.
- A real power supply — 5V 2.5A USB supply, ~$8 est. This box runs 24/7 as infrastructure. Infrastructure does not get the mystery charger from the junk drawer.
- USB-to-Ethernet adapter — ~$12 est. Optional but recommended: the thing that answers “where is the internet” for your whole house should be wired, not on WiFi. It also frees you from re-doing setup if the WiFi password changes.
Total: ~$45 est. — or ~$0 if a spare Pi is already in a drawer. Pi-hole itself is free and open source.
Step 1 — Flash the Card (5 Minutes)
Use Raspberry Pi Imager (from Project 00) and choose Raspberry Pi OS Lite (64-bit) — the no-desktop version; this box never gets a screen. In the gear/settings step, set a hostname you’ll recognize (like pihole), enable SSH, set your username and password, and add your WiFi only if you skipped the Ethernet adapter.
Step 2 — Give It a Fixed Address (5 Minutes)
DNS servers must never move. Log into your router’s admin page, find the Pi in the connected-devices list, and give it a DHCP reservation (sometimes called a static lease) — the same IP address, every time. Write the address down; you’ll type it into the router again in Step 4. Skipping this step is the #1 reason Pi-hole setups “mysteriously stop working” a week later: the Pi’s address changed and the house is asking an empty chair.
Step 3 — Install Pi-hole (10 Minutes)
SSH into the Pi and run the installer from pi-hole.net:
curl -sSL https://install.pi-hole.net | bash
The installer walks you through a few screens. The defaults are right for almost everyone: pick your network interface, accept the recommended upstream DNS (or choose a resolver you trust — this is the service Pi-hole forwards real questions to), accept the default blocklist, and enable the web admin dashboard. At the end it shows an admin password — save it in your password manager right then. Let it finish and run pihole status to confirm it’s blocking.
Step 4 — Point the House at It (5 Minutes)
Back in your router’s admin page, find the DNS server setting (usually under DHCP or LAN settings) and replace the address there with your Pi’s fixed IP. That one change is the whole trick: from now on, every device that joins your WiFi gets told “ask the Pi-hole.” Devices pick it up as they reconnect; rebooting the router (or toggling a phone’s WiFi off and on) speeds it up. Some routers stubbornly keep their own DNS as a backup — if ads still leak on some devices, check whether your router has a second DNS field quietly set, and point that at the Pi too (or leave it blank).
Step 5 — Look at Your Network (the Fun Part)
Open http://pihole.local/admin (or the Pi’s IP followed by /admin) and log in. The dashboard shows every DNS question your house asks, in real time — and for most people the first look is a genuine shock. Smart TVs are usually the loudest talkers, phoning home constantly. Expect Pi-hole to block somewhere around 10–25% of all queries out of the box. That percentage is ads and telemetry that used to load on hardware you paid for.
The Honest Limits
- YouTube ads mostly survive. Google serves them from the same domains as the videos, so DNS blocking can’t separate them. Any tool that promises otherwise is overselling. Pi-hole still cleans up most of the rest of your browsing.
- It’s a single point of failure. If the Pi dies, the house loses DNS until you fix it. The fix is boring and fast: swap the router’s DNS back, or keep a spare flashed card. Pros run a second Pi-hole; that’s a luxury, not a requirement.
- Occasionally a site breaks. An over-blocked domain can stop a login or a checkout. The dashboard’s query log shows exactly what was blocked, and whitelisting takes two clicks. That’s a feature: you can see the machinery, unlike a cloud filter.
What NOT to Buy
- A Pi 5 “so Pi-hole is faster.” DNS lookups are tiny. A Zero 2 W answers them instantly; the extra money buys heat, not speed. Save the 5 for projects that compute.
- Pre-installed Pi-hole devices and cards from marketplace sellers. Someone else’s pre-configured box answering your whole network’s questions is a trust problem wearing a convenience costume. The install takes ten minutes — do it yourself.
- Giant third-party blocklist packs on day one. More lists means more broken sites and a miserable first week. Run the default list for a while; add lists one at a time, only for a reason.
- A “whole-home ad blocker” subscription gadget. You’re looking at the free, open-source original. Paying monthly for a lesser clone of it is the exact expense this project exists to delete.
The Total, Honestly
- Pi Zero 2 W: ~$15 est. (skip if you have a spare Pi)
- 32GB microSD: ~$10 est.
- Power supply: ~$8 est.
- Ethernet adapter (recommended): ~$12 est.
- Total: ~$45 est. (October 2026), $0 in software, $0 per month, forever.
Build It This Weekend
Zero 2 W + 32GB card + supply + Ethernet adapter, flash OS Lite, reserve its address, run the installer, point your router’s DNS at it. Thirty minutes, and your whole house gets quieter.
Next in the series: Project 03 turns a Pi 5 into an always-on Minecraft server for you and your friends — no monthly hosting bill. Want the networking gear context first? The homelab gear guide covers the Pi-as-infrastructure shelf.