Block Facebook And Twitter using MikroTik

Опубликовано: 08 Февраль 2026
на канале: Erfandi Maula Yusnu, Lalu
29,870
43

In this tutorial I want to share how to block Facebook and Twitter using MikroTik layer 7 protocol and filter rules. This tutorial is only an alternative for block facebook and twitter using MikroTik, soo if you have another way to do it please tell me...
And last thing, like or dislike please comment...

Regexp:
^.+(facebook.com).*$
^.+(twitter.com).*$

Mikrotik Script :

/ip firewall layer7-protocol add name=facebook regexp="^.+(facebook.com).*$"
/ip firewall layer7-protocol add name=twitter regexp="^.+(twitter.com).*$"

/ip firewall filter add chain=forward protocol=tcp dst-port=80,443 layer7-protocol=facebook action=drop comment="Block Facebook"

/ip firewall filter add chain=forward protocol=tcp dst-port=80,443 layer7-protocol=twitter action=drop comment="Block Twitter"