# How do I block Youtube entirely?

**URL:** <https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543>\
**Category:** Help\
**Tags:** blacklisting\
**Created:** [April 8, 2017, 4:49pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543 "2017-04-08T16:49:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ragbirdo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/a698b9/32.png) [@ragbirdo](https://discourse.pi-hole.net/u/ragbirdo)\
**Post date:** [April 8, 2017, 4:49pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/1 "2017-04-08T16:49:40Z")

</div>

I have a problem with my kids who simply won't listen to reason. I'm a reasonable fellow (that's my opinion), all I ask is that they do their schoolwork, revise and read books. I find that too many times Youtube is stopping them from progressing educationally despite its internet opinionated followers. So rather than lose my temper and yell at them - I'd rather block the entire household including myself until things settle down. Am I able to do this with pihole?

---

<div class="post-metadata">

**Author:** ![ragbirdo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/a698b9/32.png) [@ragbirdo](https://discourse.pi-hole.net/u/ragbirdo)\
**Post date:** [April 8, 2017, 4:54pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/2 "2017-04-08T16:54:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![firestorrrm](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/f/edb3f5/32.png) [@firestorrrm](https://discourse.pi-hole.net/u/firestorrrm)\
**Post date:** [April 8, 2017, 5:01pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/3 "2017-04-08T17:01:16Z")

</div>

Just block `youtube.com` ?

---

<div class="post-metadata">

**Author:** ![ragbirdo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/a698b9/32.png) [@ragbirdo](https://discourse.pi-hole.net/u/ragbirdo)\
**Post date:** [April 8, 2017, 6:07pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/4 "2017-04-08T18:07:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Tntdruid](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/tntdruid/32/773_2.png) [@Tntdruid](https://discourse.pi-hole.net/u/Tntdruid)\
**Post date:** [April 8, 2017, 8:40pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/5 "2017-04-08T20:40:18Z")

</div>

Wildcard block youtube.com

---

<div class="post-metadata">

**Author:** ![Davey](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/davey/32/100_2.png) [@Davey](https://discourse.pi-hole.net/u/Davey)\
**Post date:** [April 8, 2017, 10:01pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/6 "2017-04-08T22:01:36Z")

</div>

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

![](https://discourse.pi-hole.net/uploads/default/original/2X/6/6b1f592227a9342a6561ec880af06ff936c979cb.png)

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [April 16, 2017, 4:03am UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/7 "2017-04-16T04:03:00Z")

</div>

YouTube also distributes their videos from \*.googlevideo.com as seen in [this thread](https://discourse.pi-hole.net/t/how-do-i-block-ads-on-youtube/253). But if you wildcard block access to YouTube, that should suffice.

---

<div class="post-metadata">

**Author:** ![ragbirdo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/a698b9/32.png) [@ragbirdo](https://discourse.pi-hole.net/u/ragbirdo)\
**Post date:** [April 16, 2017, 2:09pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/8 "2017-04-16T14:09:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ragbirdo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/a698b9/32.png) [@ragbirdo](https://discourse.pi-hole.net/u/ragbirdo)\
**Post date:** [April 16, 2017, 2:24pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/9 "2017-04-16T14:24:13Z")

</div>

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 ....)

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [April 16, 2017, 3:31pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/10 "2017-04-16T15:31:00Z")

</div>

We currently don't have a timed blacklist feature.

---

<div class="post-metadata">

**Author:** ![ragbirdo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/a698b9/32.png) [@ragbirdo](https://discourse.pi-hole.net/u/ragbirdo)\
**Post date:** [April 16, 2017, 3:58pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/11 "2017-04-16T15:58:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![technicalpyro](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/technicalpyro/32/752_2.png) [@technicalpyro](https://discourse.pi-hole.net/u/technicalpyro)\
**Post date:** [April 16, 2017, 7:28pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/12 "2017-04-16T19:28:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ragbirdo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/r/a698b9/32.png) [@ragbirdo](https://discourse.pi-hole.net/u/ragbirdo)\
**Post date:** [April 17, 2017, 12:42am UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/13 "2017-04-17T00:42:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![NCDiveBum](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/n/41988e/32.png) [@NCDiveBum](https://discourse.pi-hole.net/u/NCDiveBum)\
**Post date:** [November 18, 2017, 12:20am UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/14 "2017-11-18T00:20:46Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![Frances](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/f/ea666f/32.png) [@Frances](https://discourse.pi-hole.net/u/Frances)\
**Post date:** [July 29, 2018, 8:49pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/15 "2018-07-29T20:49:34Z")

</div>

Try the pcWRT router. It worked for me. You can put a timer on YouTube too. [How to put parental lock on YouTube – pcWRT](https://www.pcwrt.com/2015/08/how-to-put-parental-lock-on-youtube/)

---

<div class="post-metadata">

**Author:** ![omarthegeek](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/omarthegeek/32/14371_2.png) [@omarthegeek](https://discourse.pi-hole.net/u/omarthegeek)\
**Post date:** [April 24, 2020, 5:59am UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/16 "2020-04-24T05:59:20Z")

</div>

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.

Update:  
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.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [May 6, 2020, 6:43pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/18 "2020-05-06T18:43:26Z")

</div>

Try to to add `youtube.com` and `googlevideo.com` as **regex blacklist**

---

<div class="post-metadata">

**Author:** ![duceduc](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/duceduc/32/55_2.png) [@duceduc](https://discourse.pi-hole.net/u/duceduc)\
**Post date:** [June 3, 2020, 10:21pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/19 "2020-06-03T22:21:06Z")

</div>

> Try to to add `youtube.com` and `googlevideo.com` 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.

```auto
(\.|^)googlevideo\.com$
(\.|^)youtube\.com$

```

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [June 3, 2020, 10:34pm UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/20 "2020-06-03T22:34:58Z")

</div>

> [@duceduc](#):
>
> Can these domains be added in **Adlists** as regex and not just in **Domains**?

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

---

<div class="post-metadata">

**Author:** ![rozmansi](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rozmansi/32/4968_2.png) [@rozmansi](https://discourse.pi-hole.net/u/rozmansi)\
**Post date:** [November 26, 2020, 8:59am UTC](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543/21 "2020-11-26T08:59:05Z")

</div>

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

```auto
Non-authoritative answer:
Name: youtube-ui.l.google.com
Addresses: 2a00:1450:4001:800::200e
          2a00:1450:4001:801::200e
          2a00:1450:4001:808::200e
          2a00:1450:4001:81b::200e
          172.217.10.110
          172.217.165.142
          172.217.7.14
          172.217.9.238
          172.217.10.46
          172.217.10.14
          172.217.12.174
          172.217.12.142
          172.217.3.110
          172.217.10.238
          172.217.10.78
          172.217.6.206
          142.250.64.110
          172.217.11.46
Aliases: www.youtube.com

```

I am testing with those now:

```auto
(\.|^)googlevideo\.com$
.*youtu\.?be.*

```

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

[Next page](https://discourse.pi-hole.net/t/how-do-i-block-youtube-entirely/2543.md?page=2)
