Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: How to Block YouTube at Home
4 points by orsenthil 10 months ago | hide | past | favorite | 9 comments
It is a spring break, and I realize that kids spend more than healthy amount of time on Youtube. I have tried various solutions, tether from tplink, host based block, but I would prefer a DNS block. I have run pihole too, but wanted to see if there is any other way to block youtube (and all it's subtle domains) inside a home network?



theres a cable between the wall and the router...using this solution will also prevent the grown-ups to "spend more than healthy amount of time" on front of the screen


https://one.one.one.one/family/ Cloudflare has a dns option for families that might allow you to add black/white lists - I can't find the documentation for that feature but you might have more success than I have had. It said they would add that feature in the initial announcement


NextDNS can do that and it's cheap. See another thread from today: https://news.ycombinator.com/item?id=39895644#39896154


Thank you. This was a good suggestion.


I believe if you own a network, it's possible to lock YouTube to an age range which means however that works, it can probably be used to block it.



just block all of Google's IP blocks (most of the internet wont work properly, but thats ok)

Go to https://whois.arin.net/ui/advanced.jsp and Search for “Google LLC”, by Organization… Click each organization found and then select “Related Networks”.

Then block all that shit.

If you just want to block youtube, just do it at router/domain name level? just dont forget any of their domain names...


Their list of domains is huge. I wanted an easy toggle.


I can help you in some way because I have experimented with blocking a lot of distracting sites for my own internet de-addiction journey.

You can set up NextDNS or Adguard DNS to block YouTube at the router, device, or browser level. Really a great service, and free up to 300k network queries per month. There is a single toggle for YouTube in the Parental Controls section of both of these public DNS services to block all related domains of YouTube on the website as well as mobile apps. They also allow custom user rules that support wildcards, and you can specify all second-level domains related to YouTube to block them. I can list some of them off the top of my head:

```

youtube.com

youtu.be

googlevideo.com

ytimg.com

youtubekids.com

youtube-nocookie.com

```

You can also edit the hosts file on your desktop (or on a rooted Android phone, if you've got one).

Currently, this is what I use, and it does a decent job of blocking YouTube on my desktop.

```

0.0.0.0 www.youtube.com

0.0.0.0 youtube.com

0.0.0.0 m.youtube.com

0.0.0.0 youtu.be

0.0.0.0 www.youtu.be

0.0.0.0 i.ytimg.com

0.0.0.0 accounts.youtube.com

0.0.0.0 gdata.youtube.com

0.0.0.0 uploads.gdata.youtube.com

0.0.0.0 www.youtube-nocookie.com

0.0.0.0 youtubekids.com

0.0.0.0 www.youtubekids.com

0.0.0.0 youtube-ui.l.google.com

0.0.0.0 youtube.googleapis.com

```

There is a nifty browser extension called [Unhook](https://chromewebstore.google.com/detail/unhook-hide-youtube...) that can remove lots of addictive elements from the YouTube.com website like recommendations, shorts, homepage feed, likes, comments, subscription feed etc., and allows you to only interact with bare minimum UI consisting just videos. It's highly customizable and you can turn on or off the options according to your needs.

On Android you can use this FOSS app called [NewPipe](https://github.com/TeamNewPipe/NewPipe/) to consume YouTube videos without the official app and without needing your Google Account. There is no feed here and you can turn off video recommendations and comments in it if you want.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: