Blocking All YouTube Services

Hello Community!

I am trying to block YouTube app on my kids phone, i managed to create the necessary groups and clients and i am using these regex filters for blocking youtube services:

(\.|^)youtube\.com$
(\.|^)googlevideo\.com$
(\.|^)ggpht\.com$
(\.|^)ytimg\.com$
.*youtu\.?be.*
r[0-9]+[-.]+sn-([a-z0-9]+).googlevideo(.com)?$
rr[0-9]+[-.]+sn-([a-z0-9]+).googlevideo(.com)?$

These filters successfully allow me to block YouTube everywhere, on my windows PC, on my iPhone, well almost everywhere except on my child's device which is an old android, i have tried setting static ip and dns for the device, i cleared the cache of youtube app, i tried everything but for some weird reason, youtube gets blocked everywhere except on android devices. please help.

My setup:
two raspberry pi zero 2 w with pi hole installed on both, both have the exact same settings.

Regards,
Parth

Note that even if you can block these domains on your kid's phone, all they have to do is switch to cellular or a VPN connection and they won't be using Pi-hole for DNS.

It may be that the phone is silently adding in Google's DNS. I have a friend whose phone does this and adds 8.8.8.8 as an extra server no matter what DNS is set. Another possibility is that you missed the IPv6 settings and the router is advertising its own IPv6 address for DNS, so the phone is using that to reach the router as well as the Pi-hole settings you entered.

Yeah no, she ain't that smart, i am kinda hoping she do that, at least then she would have learned something new. and she don't have a cellular connection yet

I checked the phone settings and yes the phone is taking primary DNS from pihole but the secondary was silently set to google, i changed it to my secondry pihole, at first it worked for like 5 seconds, youtube app showed error, but when i refreshed it, it started working again, i have already set my router's ipv4 and ipv6 dns. one thing i did notice was that when i changed the phone's dns to my pihole, youtube app became slow to load, it shows placeholders for 2-3 seconds now, i know that it is not an internet speed issue because the other devices are working instantaneously. Could it be that YouTube is using any backup or regional/local domains? I am from India, if that helps.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.