Back to services

Pi-hole

A blackhole for Internet advertisements with a GUI for management and monitoring.

View alternatives to Pi-hole
Suggest edit
Open source
Self-hostable
EUPL-1.2
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Pi-hole is a network-wide ad blocker. Instead of installing a browser extension on every device, you set up one device on your network and use it as your DNS server, and ad and tracker domains are blocked for every connected device. The project code is hosted on GitHub and split into several repositories: Core, the web interface, FTL (the DNS engine), and the Docker image. The development team is spread around the world, and its members maintain the project in their spare time.

Key Features

  • Network-wide protection: Install it in one place and your entire local network is protected.
  • Blocks in-app ads: Blocks ads where browser extensions can't reach, such as mobile apps, smart TVs, and IoT devices, regardless of hardware or operating system.
  • Better network performance: Ads and trackers are blocked before they are downloaded, so pages load faster and use less bandwidth. Pi-hole also caches DNS results, so repeated queries return almost instantly.
  • Web admin interface: Shows total queries, blocked queries, activity trends per client, query types, upstream servers, and the most requested and most blocked domains. The interface is built into Pi-hole, so you don't need to install a separate web server.
  • Built-in DHCP server: Can coexist with your existing DHCP server, or you can switch to Pi-hole's own DHCP (with optional IPv6 support).
  • Group management: Split clients into groups, each with its own lists and domain rules. For example, you can filter a child's tablet more strictly and a work computer more loosely.
  • Allow and deny domains: Allow or block individual domains, or match them in bulk with regular expressions. You can subscribe to community-maintained blocklists and allowlists, which are updated automatically.
  • Query log: Records every domain query on your network, including which device made it and how Pi-hole handled it. Logs are stored in a long-term database, support advanced filtering over any time range, and let you allow or block a domain with one click.
  • REST API: Everything you can do in the web interface can also be done through the API. Every Pi-hole ships with interactive API documentation, and scripts and home automation tools can connect securely using an app password.
  • Privacy modes: Four privacy modes are available, so you can choose the one that fits your environment.
  • Centralized configuration: Configure DNS, local DNS records, the web interface, and more in your browser. Expert mode shows all options, and the Teleporter feature lets you back up your entire configuration to a single file and restore it from that file.

Target Users and Use Cases

Suited to home users, tech enthusiasts, small offices, and anyone who wants to manage ads and privacy for all devices on their network in one place. It is especially useful for devices that can't run blocking extensions, such as smart TVs and IoT devices. Paired with a VPN such as WireGuard, phones and laptops can keep blocking ads on mobile data or public Wi-Fi, and save data as well.

Installation and Deployment

  1. Choose where to run it: Run it as a Docker container, or install it with the official automated install script on a supported Linux distribution. A Raspberry Pi, an old computer, a virtual machine, or a NAS will all work.
  2. Install: Run a single command to start the installer. After you answer a few questions, it completes the setup and gives you the address of the web admin interface.
  3. Set it as your DNS server: In your router's DHCP settings, point DNS at Pi-hole so that all devices use it automatically. You can also set DNS manually on individual devices, or simply enable Pi-hole's built-in DHCP service.
  4. Use it on the go: Pair it with a VPN to keep blocking ads when you're away from home.

Technical Requirements

  • An always-on Linux device (see the official documentation for supported systems), or a Docker environment.
  • Hardware requirements are modest, and a low-power device such as a Raspberry Pi is enough.

Notable Characteristics

  • Works at the DNS level and applies to all devices, without depending on any specific client.
  • Provides a complete REST API for easy integration with systems such as home automation.
  • Has an active community, with a Discourse forum and a Reddit community, and the project is sustained by donations and sponsorships.