Mikrotik Tools

MIKROTIK BLOCK FOR
YOUTUBE, TIKTOK, FACEBOOK...

Generate firewall scripts to restrict access via TLS-Host or Content filters.

STEP 1 - Fetch Resources
## STEP 1 - Copy Paste to Terminal
/file remove "Mikrotik-Youtube.rsc"
/tool fetch url="https://raw.githubusercontent.com/mikrotik-tools/mikrotik-routeros-rsc/refs/heads/main/tls-host/Mikrotik-Youtube.rsc" dst-path="Mikrotik-Youtube.rsc"
STEP 2 - Apply Rules
## STEP 2 - Copy Paste to Terminal
/import file-name="Mikrotik-Youtube.rsc"
/file remove "Mikrotik-Youtube.rsc"

/ip firewall filter add action=drop chain=forward disabled=no src-address-list=LOCAL-IP dst-address-list="Mikrotik-Youtube" comment="Block Youtube - Mua.lat"
/ip firewall raw add action=drop chain=prerouting disabled=no src-address-list=LOCAL-IP dst-address-list="Mikrotik-Youtube" comment="Block Youtube - Mua.lat"

/ip firewall address-list add address=192.168.0.0/16 list=LOCAL-IP comment="LOCAL IP - Mua.lat"
/ip firewall address-list add address=172.16.0.0/12 list=LOCAL-IP comment="LOCAL IP - Mua.lat"
/ip firewall address-list add address=10.0.0.0/8 list=LOCAL-IP comment="LOCAL IP - Mua.lat"