How to block Youtube and facebook Android App in router Mikrotik

Thank you migueloty. Is work with me also

this post was very interesing on my side. thanks to take time to focus on the specific relevant aspects of the topic.

Instead of messing around with this one

…you can disrupt the connection before SSL is fully negotiated.
certificate exchange takes place “in cleartext”, <
on MT on low level, similar can be done in a clean way using squids https interception.
Which also allows to block facebook etc.
However, this needs squid to be setup, which is not possible on MT, AFAIK.

Hi,

Drop any dns requests using l7 list.

;;; Drop Blacklist - DNS
chain=forward action=drop layer7-protocol=blacklist protocol=udp dst-port=53

If they don’t use ip instead of name you’re covered.

Calm down :slight_smile:

As he mentioned before. Dropping layer7 and adding his pages to L7 list is enough. and woking… BEST SOLLUTION. Point is just finding all pages tried to be reached.

Why didn’t block you youtube in Ipad but yes it blocked when you used “ytimg”?

Because I want to learn a bit of MikroTik.

Hi,
Can someone please tell me, do I add these rules to the bottom, or the top of the Firewall list? Or does it not matter?

Maybe time that the comes a sticky post on blocking. The DNS does now regex and became a good tool to block unwanted sites. You have then block also acces to external DNS servers. A user can still create a host file to bypass the Mikrotik filtering.

I’m still wondering why you’re not using an openDNS to block some sites ?

Of course you need static wan up address, but it is simple solution with some feedback .
Screenshot_20171223-134517.png

The recommended solution has been documented by Mikrotik support: have a look at the video at 3:30 https://www.youtube.com/watch?v=D80_a_O86jc&index=5&list=PLXr-HoBo2VtU531RaS2ZG-1cqdP43-B13

Would you share the code or how to configure that?