How to block Youtube the most efficient way

Here is code that you will need to create the Layer 7 regex: