you can deploy PiHole (google it) to control the DNS and use the same method that you browsers app "youtube channel blocking" works and add it to the pihole so that no one from your network would get it.
you can use the regex to inspect the url.