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

Our code is completely open, but piping to bash can be dangerous.

For a safer install, review the code and then run the installer locally.

NETWORK-WIDE, HARDWARE AD BLOCKING

Why spend $149 on an AdTrap, when you could spend $35 on a Raspberry Pi?


Block Over 100,000 Ad-serving Domains

Known ad-serving domains are pulled from third party sources and compiled into one list.

Block Advertisements On Any Device 

Network-level blocking allows any device to block ads, regardless of hardware or OS.

Improve Overall Network Performance

Since ads are blocked before they are downloaded, your network will perform better.

Reduce Cellular Data Usage

Pair your Pi-hole with a VPN for on-the-go ad-blocking and save on data costs.




Monitor Performance And Statistics

The Web interface shows how many ads were blocked, a query log, and more.

API


Utilize Pi-hole's API in your scripting or programing projects.

{
"domains_being_blocked": "136708",
"dns_queries_today": "18108",
"ads_blocked_today": "14648",
"ads_percentage_today": "80.89"
}
  • ​summary
  • summaryRaw
  • overTimeData
  • topItems
  • recentItems
  • getQueryTypes
  • getForwardDestinations
  • getQuerySources
  • getAllQueries

Installation

1

INSTALL RASPBIAN

Pi-hole was designed for Raspberry Pi, but also works on most Debian-based distros.

2

INSTALL PI-HOLE

Run the install command found at the top of the page

3

USE PI-HOLE AS YOUR DNS SERVER

Configure your router's DHCP options to force clients to set their DNS server as your Pi-hole

OR

Manually configure each device​ to use the Pi-hole as their DNS server

4

BLOCK ADS EVERYWHERE

Since Pi-hole works at the DNS level, ads can be blocked on any device and even in apps.


Project Updates

Tips For Accessing Your Pi-hole Remotely
It is possible to use your Pi-hole remotely for ad-blocking on-the-go.  We don't have a guide on this process for[...]
Pi-hole 2.9 Released With Important Bug Fixes Plus Some Cool New Stuff
We're happy to release a new version of Pi-hole core. With this release, please accept our apologies for the pihole -d[...]
Enjoy The Rio Olympics Ad-free With Pi-hole
The NBC app (or their live stream site) for watching the olympics isn't that great to begin with, but throw[...]
Our New Logo
We really like it and we think you'll agree. Legitimacy Pi-hole has always been a community-driven project and we couldn't[...]

More...