Block Telegram with "Layer 7" or "Content" Or "TLS" - MikroTik Script RouterOS
How to Block Telegram with "Layer 7" or "Content" Or "TLS"
Block Telegram With "Layer-7"
/ip firewall layer7-protocol
add name=Telegram regexp="^.+(telegram.com).*\$"
/ip firewall filter
add action=drop chain=forward layer7-protocol=Telegram
Block Telegram With "Content"
/ip firewall filter
add action=drop chain=forward content="telegram.com"
add action=drop chain=forward content=".telegram."
Block Telegram With "TLS"
/ip firewall filter
add action=drop chain=forward protocol=tcp tls-host="telegram.com"
add action=drop chain=forward protocol=tcp tls-host="*.telegram.*"
Credit: www.o-om.com