How do I block Youtube entirely?

I know I can also use MAC address filtering to block them from the internet but my intent is to allow them to use Google for research, check their mail etc. Its an addiction to streaming videos that I want to cut.

Just block ?

I tried (both .ca &.com), but since it uses https as well and seems like Google is also streaming, I tried the router and at the opendns level.

Wildcard block

1 Like

As above, on the blacklist screen, on the very right of the URL entry bar, select wildcard to block the entire domain

YouTube also distributes their videos from * as seen in this thread. But if you wildcard block access to YouTube, that should suffice.

Works nicely for now. Complaints are coming in .... Summer is around the corner - lets see the grades before youtube reinstatement

1 Like

Is there any feature where I can do a timed blacklist disable like the feature where you can disable pihole entirely for a given time period thru the Web UI? (I also watch youtube ....)

We currently don't have a timed blacklist feature.

No Problem - using my newshosting VPN bypasses pihole for now. Thank goodness my kids don't know about VPNs.

yet .... they will learn if they are determined

1 Like

LOL. Suddenly your words, a new realisation dawns upon me .... they are my kids ergo they think like me!

1 Like

I have tried all the above suggestions and I am STILL able to get to youtube. Have * and when I go to happily loads the page.

Are we quite sure that youtube is not a virus or something? :slight_smile:

Try the pcWRT router. It worked for me. You can put a timer on YouTube too. How to put parental lock on YouTube - pcWRT

I'm having the same issue. I opened a Youtube video, then went to the Query Log page, blocked all the links that were related to youtube, and still, Youtube worked when reloading the page.

After a lot of blocking, I was able to block Youtube videos from loading, though Youtube pages were loading normally. I tried even blocking google domains, but Google and Youtube pages kept loading normally.

Try to to add and as regex blacklist

Try to to add and as regex blacklist

Can these domains be added in Adlists as regex and not just in Domains? I have another domain list and is setup as an adlists. If I want to disable it, all I need to do is go to one place and not have to jump around to domains and adlists to disable them.


No. Adlist URLS lead to individual domains only, not regex. Regex is for the domain lists only.

Looks like YouTube really is a resilient virus. (\.|^)googlevideo\.com$ and (\.|^)youtube\.com$ are not enough. Still getting a response:

Non-authoritative answer:
Addresses:  2a00:1450:4001:800::200e


I am testing with those now:


The later blocks anything with "youtube" and "" strings in it.

Hi, May I know how did You finally manage that? so far I've blocked several sides with RegEx and it's stopped playing videos, but it's still not perfect

youtube googlevideo ggpht ogleusercontent ytimg youtubei googleapis googleusercontent