Home Networking Raspberry Pi “Pi-hole” Project Part 1

The following posts will be on how to set up your own ‘Pi-hole’.

What I wanted to do was set up my Pi to block ads, filter content, and serve as a secure VPN for when I’m connecting out in the real world where the bad hackers live.

I started with a base of Jessie flavored Raspbian.

Part 1 – block ads

This part was easy.  Check this out:


Not much to it.  Start with your base of Raspbian.  Make sure its up to date:

sudo apt-get update

sudo apt-get upgrade

Then go get your pi-hole.

curl -L install.pi-hole.net | bash

Then configure your devices (or router) to use your Pi as its DNS server.

I’m being lazy so you can check out the link above for links on how to do that.

My router would not support it at the router level, so I configured devices individually.  You will need to know your Pi’s ip address.  It should probably be static.  A later post will cover how I handle static ip’s for all my devices.

Now when I browse the web I get empty space where once ads stood.

Next time I’ll go over content filtering.  Until then, stay frosty.

By Matt Christensen

I am a professional web / software developer located in Pontiac, IL. I have been developing web solutions and applications since 2003. I graduated from Bradley University (Peoria, IL) with a degree in Computer Science and Math. I currently work in Digital Marketing for a large Midwest company. However, I am available for projects. Please use the contact form if you have a project/site you need help with. Specialties: HTML, PHP, Linux, MySQL, CSS, WordPress, Joomla!, JavaScript, C#