Remix.run Logo
uyzstvqs 16 hours ago

You can configure a Pi-hole with filter lists. Alternatively, Cloudflare, Mullvad and Adguard offer public DNS resolvers with family-friendly filter lists.

For YouTube there's the BlockTube browser extension. You'll need to configure it yourself, but it's very flexible. It lets you block channels, videos and keywords.

frereubu 16 hours ago | parent [-]

Thanks for the DNS resolver idea - will look into that.

The issue with having to actively block YouTube channels is that there are so many! I really want something where all channels are blocked by default and I can whitelist them, but without actually hiding the channels themselves, just stopping the videos from playing so discovery isn't affected.

uyzstvqs 14 hours ago | parent [-]

BlockTube also has an advanced blocking feature[0], which lets you define blocks using JavaScript if statements. You can flip it around to a whitelist-system by returning true (block) by default, and returning false (don't block) on your rules. But this does hide videos from search, recommended, homepage, etc.

What you're suggesting could potentially be done by creating an extension which checks the channel_id, then blocks calls to the /videoplayback endpoint if the channel is not whitelisted. Though do be aware that titles and thumbnails could also be explicit.

Side note: All of this is very technical and not suitable for the average parent, which is not great.

[0] https://github.com/amitbl/blocktube/wiki/Advanced-Blocking