Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I use the pcWRT router, which does this job nicely. You can either block YouTube, or put YouTube in restricted or moderate restricted mode. And you can set a timer on YouTube. https://www.pcwrt.com/2015/08/how-to-put-parental-lock-on-youtube/