

Create mangle rules that will create blacklist IP address called “YouTube-BL”You can open new terminal or type “/” to go to root directory and copy paste this code:/ip firewall mangleadd chain=prerouting action=add-dst-to-address-list address-list=YouTube-BL address-list-timeout=1d layer7-protocol=youtube log=no log-prefix=””You can check if your rules work by visit youtube sites and check your address list they should make automatic list like this:If you dont see this list start populating then stop. Work with my other rules to limiting youtube streaming download:/ip firewall layer7-protocoladd comment=”” name=youtube regexp=”videoplayback video”(Step 2).

one good page that explains list of regex pattern matcher can be found here. So our main job here is to create a pattern and regex has its own symbols to define a pattern. because of that capability regex is mostly used on Firewall, routing filter, and anything that is related to pattern matching. Now open new Terminal winbox and copy paste this rules:/ip firewall layer7-protocoladd name=youtube regexp=”^.( youtu.be tv.com ).$”The above code work with me.You can experiment using this code:/ip firewall layer7-protocoladd comment=”” name=youtube regexp=”^.get.+.(c. ).$”or this code also work but it may be block all the word “video” I am still experimenting on this one. Is a feature / function to create pattern matcher.
