github gitlab twitter email
Blocking Facebook With Pihole
Apr 13, 2018
2 minutes read

Due the recent facebook happenings and none of my family have an account there anymore(or at least we think so) I decided to block the access to its addresses. Why?

  1. I don’t believe that they won’t track me anymore even though I do not having an account anymore. (I used to have, twice, don’t judge Morty :-P)

  2. I do understand that when some service is free, “ourselves are the payment”, but I do believe that I’m have the freedom and the power to choose what I’m sharing, on the scene and behind it.

  3. Limit my bandwith to just the crap that I’m wanna waste.

So what I’ve done was setting up some rules in my PiHole machine.

The steps are the following, logged as pi user:

  1. Create a text file with all your blocked domains, save it in /etc/pihole, for example

  2. Copy /etc/pihole/adlists.default to /etc/pihole/adlists.lists

  3. Edit adlists.lists including the following line at the end of file(for example):

    ## Facebook block

    (after file there are three slashes(“/”) is not a typo)

  4. Issue a pihole update

    $ pihole -g
  5. After the update all the domains that you put in your custom .txt file will be piholed

The list of blocked domains you could easily find on Google, Github or even on the PiHole support forum. Mine I don’t remember exactly where I’ve got.

After that I noticed an increase of blocked domains… so my first “why” was correct :-D.

Tags: pihole raspberry pi pi3 security privacy

Back to posts