Project 02 · The Build Log

Block Every Ad on Your WiFi with Pi-hole

Beginner ~30 min ~$45 in parts, est.

Raspberry Pi Pi-hole Setup: Block Ads on Your Whole Network

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.

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

What NOT to Buy

The Total, Honestly

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.