Forked from rindrasakti/MIKROTIK LAYER 7 Block Youtube.txt
Last active
October 19, 2024 16:31
-
-
Save 9M2PJU/8a6bda47326501ba6beecfff2f8deb6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blok Youtube Web | |
^.+(youtube).*$|a.youtube.com|b.youtube.com|c.youtube.com|d.youtube.com|e.youtube.com|f.youtube.com| g.youtube.com|h.youtube.com|i.youtube.com|j.youtube.com|l.youtube.com|googlevideo.com|m.youtube.com|(facebook.com).*$ | |
Blok Youtube App | |
^.+(youtube.com|www.youtube.com|m.youtube.com|ytimg.com|s.ytimg.com|ytimg.l.google.com|youtube.l.google.com|i.google.com|googlevideo.com|youtu.be).*$ | |
/ip firewall layer7-protocol | |
add name=YouTube regexp="^.+(youtube.com|youtube.com|www.youtube.com|m.youtube.com|ytimg.com|s.ytimg.com|ytimg.l.google.com|youtube.l.google.com|i.google.com|googlevideo.com|youtu.be|www.youtube.com|m.youtube.com|ytimg.com|s.ytimg.com|ytimg.l.google.com|youtube.l.google.com|i.google.com|googlevideo.com|youtu.be).*$" | |
/ip firewall mangle | |
add action=mark-connection chain=output comment="YouTube " layer7-protocol=YouTube new-connection-mark=YouTube passthrough=yes | |
/ip firewall filter | |
add action=drop chain=output connection-mark=YouTube protocol=udp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment