Blocking social platforms in Mikrotik Router

Almost 5 years ago I recorded a “How to Block Facebook & Youtube in Mikrotik Router” that surprisingly went over 100k views. In this video, I explained how to write a rule to disallow all the traffic from Facebook and Youtube.

Due to many requests on the video lately, I’ve decided to enforce the video with some love and rewrite the article that existed on my old blog 5 years ago.

So, for all those who can’t read the actual rule in the video, here it comes

^.+(facebook.com youtube).*$

Simply follow the video step by step, copy the regular expression from the above and you should be good to go.