Redson Dev · Idea
Block ads on every device with a $35 Raspberry Pi
Published April 24, 2026
Pi-hole is a DNS-level ad blocker for your whole house. Phones, smart TVs, console games — everything served from your router gets ads stripped before they ever load. Works in 20 minutes.
What you'll need
- Raspberry Pi (any model from Pi 3 onward)
- microSD card (8GB+)
- Power supply
- Ethernet cable (recommended) or Wi-Fi
- Admin access to your home router
Step-by-step
- 01
Flash Raspberry Pi OS Lite
Use Raspberry Pi Imager. In the advanced menu, set hostname (pihole.local), enable SSH, and pre-fill Wi-Fi credentials.
- 02
SSH in
`ssh pi@pihole.local`. Default password is what you set in Imager. Run `sudo apt update && sudo apt upgrade -y` first.
- 03
Install Pi-hole
`curl -sSL https://install.pi-hole.net | bash`. Accept defaults — it'll pick an upstream DNS (Cloudflare 1.1.1.1 is great) and install a web UI.
- 04
Set a static IP
The Pi MUST keep the same IP. Either set DHCP reservation in your router or configure /etc/dhcpcd.conf with a static.
- 05
Point your router's DNS at the Pi
In your router admin, set primary DNS to the Pi's IP. This pushes Pi-hole to every device on the network automatically. No client config needed.
- 06
Open the dashboard
http://pihole.local/admin — login with the password printed at install. You'll see queries, blocked %, top domains. Add extra blocklists from firebog.net for more aggression.
Tips
- Some sites break (login redirects, video pre-rolls). Toggle 'Disable for 5 minutes' from the dashboard when needed.
- Don't expose the admin UI to the internet. If you want remote access, use Tailscale.
