Enter the Pi-Hole, a Raspberry Pi image that blocks ads of all sorts at the router level.
Luckily, developerJacob Salmelahas a pre-configured Pi image thats easy to install and set up.
you could followour guide to make an image here, but heres the short version.
Windows
Download the preconfigured Pi-Hole imageand unzip the .img file inside.
Download Win32DiskImagerand unzip the app (.exe file) inside.
Connect your card reader to your Windows PC and insert your SD card.
Open Win32DiskImager.exe, the tool you just downloaded, by double-clicking it.
hit the Write button and wait for Win32DiskImager to do its thing.
OS X
Download the preconfigured Pi-Hole image from hereand unzip the .img file inside.
Connect your card reader to your Mac (if necessary) and insert your SD card.
Open RPi-sd card builder.
Youll immediately be asked to choose a Pi-Hole image.
Choose the .img file you downloaded earlier.
Youll be asked if your SD card is connected.
Since we inserted it earlier, it is, so go ahead and click Continue.
Youll be presented with SD card options.
If you only have one inserted, you wont see anything else in the list and itll be checked.
This is supposed to happen, as the utility needs to unmount it to perform a direct copy.
Double-check that your SD card is no longer available in the Finder.
DO NOT remove it from your USB port or card reader.
When youre sure, click Continue.
RPi-sd card builder will finish prepping your SD card.
Safely eject it and insert it into your Raspberry Pi.
When you first boot up your Raspberry Pi, itll boot and reboot several times.
This is normal, so let it happen.
Eventually it will boot up to a login screen.
access with theusername:rootandpassword:dietpi.
When its done, youll need to reboot again, then login.
This is necessary so your Pi will always be available at the same address from any of your devices.
Heres what youll need to do:
Select Okay at the initial setup screen.
Select Change Wired internet configs.
Select Change Mode and press Enter to change it to Static.
Select Copy Current Address to Static.
Make a note of the IP address listed at the top, youll need that in the next step.
Select Apply to save the changes and restart the internet.
When thats complete, select Exit to restart the rig one more time.
After the internet options are configured, your Pi will restart again.
To do this, youll need to change your devices DNS tweaks.
This is pretty simple, but varies depending on your devices and what theyre running.
Right-tap the Start Button and select web link Connections.
Select your Wi-Fi or Ethernet data pipe.
Double-click Internet Protocol Version 4.
Click Use the following DNS server addresses.
Under the Preferred DNS server, type your Raspberry Pis IP address you gathered in step three.
smack the DNS tab.
poke the plus sign and slide in your Raspberry Pis IP address you gathered in step three.
Android
Open prefs.
Long press on your current data pipe and select Modify data pipe.
Tap Show Advanced Options.
Change the IP controls to Static.
key in your Raspberry Pis IP address under the DNS field.
iOS
Select Wi-Fi and tap your home online grid.
Tap DNS and input your Raspberry Pis IP address.
First, youll need to head back to your Raspberry Pi.
When you boot up the Raspberry Pi and login, you will automatically be at the command line.
jot down in the URL of any sites you dont want to block ads on.
Press Enter between each entry to put each on a new line.
Use bothwww.site.comandsite.comfor the sites you dont want to block.
Press CTRL+X to save and exit.
Restart the Raspberry Pi and the changes will take effect.
For a more in-depth look at creating your own white and black lists, youcan follow this guide.