Skip to content

Instantly share code, notes, and snippets.

@rindrasakti
Last active May 8, 2025 05:20
Show Gist options
  • Save rindrasakti/87fd8118b30ec9d9ebdcb13693414bee to your computer and use it in GitHub Desktop.
Save rindrasakti/87fd8118b30ec9d9ebdcb13693414bee to your computer and use it in GitHub Desktop.
Blok Youtube Web
^.+(youtube).*$|o-o.preferred.pttelkom-|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|(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).*$
@Mahmoud2141
Copy link

Please explain the YouTube app ban.

@rindrasakti
Copy link
Author

according to this manual. https://help.mikrotik.com/docs/spaces/ROS/pages/130220161/Layer7
layer 7 work by read the 10 packets of a connection or the first 2KB of a connection and searches for the pattern in the collected data. so the simplest explanation is if there is match pattern with the definition firewall filter will drop it. you can see in my script it search all domain and sub domain of youtube.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment