Upside of a PiHole

My dad put me on to a Raspberry Pi project called the PiHole. It turns your Pi into a DNS server- but it has a huge list of ad serving domains stored. When you request a webpage that makes a call to one of those ad-serving domains, this DNS box never makes the request. This is different than ad blocking- the ad never comes in this case, because it never calls for the data. It’s lovely- web pages are much nicer to use this way. And I don’t have to worry about browser plugins, or whatever else. AND anything on my home network automatically goes through this DNS- so it works on every device in the house. Obviously it’ll do white listing and all sorts of other fine tuning.
Because I’m me, I bought a kit to do this from Adafruit that had a Pi 3, an enclosure, and a tiny lcd screen. Strictly speaking, nothing but the Pi is critical. But the enclosure and the screen are pretty rad.

One of the oddball upsides to this has been to breathe some new life into my 10 year old computers. With all the less data/is/hot garbage to load, webpages are much lighter weight. Formerly heavy sites now load lightning quick. I’m a cheap bugger when it comes to computers, but I’ve fickle taste too, so there’s always a balance for me to strike when I pick up a new machine. Because I use Macs, my options tend to run towards the used market. My current daily driver is a Mac Mini (Early 2009) Core 2 Duo that’s got 5gb of ram and a SSD I’ve added. With the PiHole running, it’s totally lovely for web-based work. Video editing? Not so much.

Anyway.

Thought some of you might find it useful- either as a project for fun, or as a practical and inexpensive way to keep older computers relevant and useful.

[edit for clarity and flow]

22 Likes

Here’s mine:


It’s mounted to the bottom corner of a monitor to get it up off my desk.

14 Likes

Squee! That sounds amazing. I’ve always wanted am excuse to get a Raspberry Pi.

10 Likes

I repurposed an old first gen Pi to be a Pihole. It sits with all my other network stuff powered off of a PoE to USB adapter. Even for such old hardware it works great and other than occasionally having to tweak its rules when it gets overzealous with its blocking it basically runs itself without needing any intervention. A great little device. Looking at the dashboards it seems to block some 25% of my devices’ DNS requests.

The great thing is using apps is so much nicer now since many of the ad networks are blocked so places that would have once been filled with ads are now empty boxes. I can really tell when I’m not on my network because even using stuff like Apple News on my phone becomes a carnival of fucking ad tiles everywhere.

Best thing of all is it took almost no time at all to set up.

14 Likes

Oooh, I may need to try this on an old Pi that’s sitting on my shelf waiting for productive employment.
I’ve traditionally used an ad- and malware-blocking hosts file on my desktop workhorse. While it’s easy and cheap and works nicely, it ONLY works on the machine(s) it is installed on.
Excellent post. Thanks.

7 Likes

That screen is nice.

I’m a sucker for dashbords

6 Likes

The PiHole install has a pretty comprehensive web based dashboard built it- I was just feeling 1337 and wanted the tiny lcd.

9 Likes

I feel like it needs a tiny zaibatsu logo to complete it.

(Want).

5 Likes

Good idea!

Maybe I’ll put and Ono-Sendai decal on there…

6 Likes

11 Likes

My only regret is that I have but one like to give. :heart:

7 Likes

What? Doesn’t everyone have some extra fictional megacorp stickers just laying around?

7 Likes

Pi-hole is one of those little projects that I’ve wanted to try for a while now, but never quite made the time to sort out the details and get started.

But when I saw your pic of that little display, and then realized I could get the same thing as a kit w/out having to put any thought into it myself, I knew it was time to act, and decisively impulse-purchased the whole thing. :crazy_face:

It arrived yesterday, and I got it set up this evening. It’s my first pi, and I was pretty impressed with how well thought-out the kit was. The sd card coming pre-flashed with the expected OS was a nice touch, I thought. The tutorials were a bit haphazard, but overall better than I expected and sometimes delightfully good (like when I was like “doh!” at this weird error message I didn’t want to have to troubleshoot, then at the end of the page it says “and if you get this exact weird error message just do x” and I did x and it worked!).

I haven’t set the router to use it, yet (I’m out of outlets near my desk, so I’m not sure where its permanent home will be, at the moment), but I pointed my phone at it and holy smokes!, is the difference dramatic. Mobile web doesn’t entirely suck, now.

So anyway, thanks for the inspiration.

ETA: my only disappointment is that the buttons don’t do anything. I don’t know what I expected them to do, but still. :neutral_face:

10 Likes

I’m happy to hear you like it!
I pointed my router at it, and then as a fail-over, put in the secondary DNS server of 1.1.1.1. It’s made a serious difference in my web browsing on my ancient computers.
Also: it’ll want/need to be updated from time to time- you’ll have to ssh into the PiHole for that, but the PiHole folks have a super-straightforward guide to that here:


It’s really easy.
And the PiHole is automatically updating it’s blocked IP list about once a week- so that’s rad!

6 Likes

So this post finally gave me the incentive to set up PiHole on one of the RPi I had laying around.

I’m still waiting on my case, so pictures aren’t needed…but it sure make obvious that your devices are calling home on you.

Looking at YOU, Roku…

7 Likes

I want to play. How do I get started?

5 Likes
  1. Get a Raspberry Pi (any model will do)
  2. Set up an SD card with Raspbian
  3. Install Pi-Hole
  4. Go through setup wizard
  5. Set the Pi-Hole as your DHCP server
    1. Or set the Pi-Hole as your DNS server from your existing DHCP server
    2. Or manually configure your devices to use your Pi-Hole as your DNS server if you’re not ready to fully commit

It’s very low effort. I currently have it manually configured like in my step 5.2 rather than in DHCP mode since I’m still worried about the WAF, but it rarely gets in the way and I’ve been using it for about 6 months now.

6 Likes

I bought one of these:


and then followed these step by step instructions:

To be clear: you don’t have to buy the first kit- literally any Raspberry Pi can do this. Heck, you can even run the PiHole software on tons of other types of machines. The directions are super easy to follow- especially if you’re just running a regular Pi for this (and not the kit with the display that I’m using- 70% of my effort was just getting the display working properly).

It’s easy and totally worth it.

5 Likes

No buttons on it, but I wonder if this might be a cheaper alternative for the screen + case:

2 Likes

That looks just like case I bought off AliExpress. Guess I’ll find out soon enough.

2 Likes