How many times have you encountered annoying ads on sites you browse through your personal computer, mobile or smart TV? How much better would it be, instead of installing an ad blocker (eg plugin) on each device, could you block all advertising content from the entire network using a single device? All queries can be resolved by using the Pi-Hole.
Pi-Hole is an open source software that works like an internal DNS server, and is intended to exclude all advertising content from the sites you visit. It can be installed very easily on software versions Raspbian, Ubuntu, Debian, Fedora and CentOS while its low demands on computing resources make it ideal for operation on Raspberry Pi. How simple is it? Just install it, plug it into your router and start browsing freely!
Installation on Raspberry Pi
Install the Pi-Hole by running the following command at the Raspberry Pi terminal:
curl -sSL https://install.pi-hole.net | bash
The above command will briefly make the following changes to Raspberry Pi:
- Upgrade the software
- Installation web server and dns service and modify their settings.
- Download list with all known adware servers from 7 differently sites.
Otherwise, if you want to read the code you are going to download to your device, you can visit the instructions provided by the Pi-Hole project page.
Parameterization of network settings
Once you've successfully installed the software on Raspberry, it's time to configure your router to get the most out of Pi-Hole and more specifically, set up your network devices to use Pi-Hole as a DNS server. Alternatively, you can use the pre-installed Pi-Hole DHCP server while you have already turned off DHCP on your router. Finally, if none of the above options are possible, you should set each device on your network to use it Pi-Hole like it DNS server her.
If everything went well by following the steps above, you can access the Pi-Hole portal from any connected device on the same network using one of the following ways:
- http: /pi.hole/admin (if you set Pi-Hole to your DNS server)
- http://pi.hole/ (if you set Pi-Hole to your DNS server)