PiHole: Use as a Parental Filter
Pi-Hole: Use as a free parental filter? Yep, PiHole can help keep your kids away from that naughty content in addition to it’s principal use as a Linux network-level advertisement and Internet tracker blocking application. Yup PiHole still functions as your local DNS sinkhole, and optionally a DHCP server on your home network blocking traditional website advertisements as well as advertisements in unconventional places, such as smart TVs and mobile operating system advertisements. BUT it can also keep the kids away from all sorts of inappropriate adult content including porno.
Now before you leave it in the comments, it’s by no means fool proof. An inspired and industrious individual can find away around this. It also only works on the local network so cell phones which aren’t connected to wifi for example, aren’t blocked. However it’s free and it will stop most children.
You may have setup a TrueNAS: Pi-Hole Virtual Machine Install and are looking to add this to your setup. Or you may have installed Pihole on a Raspberry Pi by following the official PiHole install instructions.
In any case, once you have PiHole installed, you can begin setting it up as a parental filter to block site with pornographic content. Please note these instructions are for PiHole Version 5. Let’s get started with PiHole: Use as a Parental Filter.
Add a Blocklist or Adlist for Parental Filter
As I said, this is pretty simple. Lets start by logging into your PiHole web admin portal. Click “Group Management" -> "Adlist"
on the lefthand side.
You will now be on the adlist group management page which shows what lists are being used to block webpages.

We are going to be adding the blocklist created by mhhakim which is available on his page on github. Now lets enter the information for his blocklist in the address box at the top of the screen:
https://raw.githubusercontent.com/mhhakim/pihole-blocklist/master/porn.txt
You can add a comment in the comment box if you’d like and when done, click the blue “Add” button.
The new list seemed to be working for me right away. You can test it out by browsing to a website on the blocklist (i.e. pornhub.com). If its not working you may need to run pihole -g
from the command line console of the system running pihole.
Alright. That’s it you’ve completed PiHole: Use as a Parental Filter. Now you’ve added one more barrier to keep those kids from illicit content. You can of course do this for other block or adlists you may want to use.
Happy Piholin’
~digiMoot
how to block porn only for kids and not for adults
Not through this method.
Use a vpn
You can add the clients by the MAC to groups and as you see on the screenshot on the Group assignment column you can assign the lists to the defined groups, for your case, one group to the adults and one for the kids.
The easiest way, give children their own network, that’s what I’m in the process of doing, my nephew uses his tablet at his grandparent’s house, so I’m setting up a vLAN for him alone, and I have a Pi Zero W running Pi-Hole + Unbound especially for him and his network providing parental controls. Then on the LAN my parents use I’ve set them up redundant Pi-Hole + Unbound set ups just with no parental control features. Ya know vLAN segmentation isn’t an end-all solution but it does have it’s perks for managing who can do what by groups
Ya te tocaría crear dos redes wifi separadas una para ti y otra para el resto y a esa red wifi para el resto debes agregarle como servidor DNS principal la opción de tu pi hole. Luego en las opciones de la pi hole me imagino q debe haber algún filtro para escribir q esa lista de bloqueo solo lo haga con las ips de esa red
Very easy – just das the Kids phones and PC to a group and enable the blocklist only for this group.
Sadly, this hasn’t worked for me. Set up and installed a new Pihole, added the lists above -but the PiHole rarely blocks sites on the block lists.
It is however doing a good job of blocking ads. Looks like I’ll need to find another way
Still up and running and working great for me.
Same. Doesn’t work at all for me.