Raspberry Pi

Blocking Ads Network-wide with Pi-hole

October 20, 2025 MakerWorks Team
Pi-hole Setup

Tired of intrusive ads slowing down your browsing and tracking your activity? Pi-hole is a network-wide ad blocker that runs on your Raspberry Pi. Instead of installing extensions on every browser, Pi-hole blocks ads at the router level for your entire home—phones, tablets, and smart TVs included!

How Pi-hole Works (DNS Sinkhole)

When you type a website name (e.g., google.com), your computer asks a DNS server for its IP address. Pi-hole acts as your DNS server. Ideally, if it sees a request for an ad server (e.g., ads.tracker.com), it returns a blank address, so the ad never loads.

What You'll Need:

  • Raspberry Pi (Almost any model works, even a Pi Zero!)
  • MicroSD Card with Raspberry Pi OS installed
  • Power Supply & Network connection (Ethernet preferred for stability)

Step 1: Installation

Open your Raspberry Pi terminal (or SSH in) and run the following automated installer command:


curl -sSL https://install.pi-hole.net | bash
                

Follow the on-screen prompts (the defaults are usually fine):

  1. Select Eth0 or Wlan0 depending on your connection.
  2. Set a Static IP Address for your Pi (important!).
  3. Choose an upstream DNS provider (Google, Cloudflare, etc.).
  4. Ensure the Web Interface is enabled.

Write down the Admin Password shown at the end of the installation!

Step 2: Configure Your Devices

You have two options:

  • Option A (Easiest - Per Device): Go to your computer/phone Wi-Fi settings and change the DNS server IP to your Raspberry Pi's Static IP address.
  • Option B (Network-wide): Log in to your Router's admin page. Find the DHCP/DNS settings and set the Primary DNS Server to your Raspberry Pi's IP. This will cover every device connected to your Wi-Fi automatically.

Step 3: Access the Dashboard

Open a web browser and go to:

http://[Your-Pi-IP-Address]/admin

Here you can see colorful graphs of how many queries were blocked, blacklist specific domains, and manage your network privacy.

Enjoy a faster, cleaner internet experience!