Block Youtube on computers and smartphone apps

Hello everyone;

I would like to ask how to block youtube (or facebook) website and apps using Mikrotik RB951Ui-2HnD
Note that I tried using layer7 filtering, I tried what was said in this video:
https://www.youtube.com/watch?v=D80_a_O86jc&list=PLXr-HoBo2VtU531RaS2ZG-1cqdP43-B13&index=7, MIN: 3:30

Note that modern web browser uses QUIC, note also that android apps can not be blocked using Layer 7 filtering
Note that blocking all youtube ip addresses would be inefficient to me.

I tried every possible way I saw on the Internet but didn’t work with me, I would really appreciate your help.
Thanks in advance.

block youtube:

layer7 filtering useless with HTTPS.
+
modern web browser uses QUIC
+
android apps can not be blocked using Layer 7 filtering
+
blocking all youtube ip addresses would be inefficient to me
+
I tried every possible way I saw on the Internet but didn't work with me
+
supposed: no control on user devices
+
supposed: do not want spend $50.000 and more for non-mikrotik deep packet inspection machine or similar

IS-NOT-POSSIBLE

And before open useless topic for the same arguments already present dozen of times, at least deign to do a search on the forum.

you unplug the PCs from internet, turn off the routers and turn off mobile data.

:open_mouth: It is true! Just remove the internet from users!!! Why I didn’t think about it before???

(sorry, I’m stupid)

One could still use RFC2549 … even under those conditions.

RFC2549 has been outdated few years ago… Why don’t you update?

RFC9200

Please use the updated RFC 6214, thank you.
Regards,
Also the topic you recently closed is older than this current one (check the time ^^)
http://forum.mikrotik.com/t/blocking-youtube/160017/1

@Znevna

Is hard to join all “block youtube” topics and concentrate all in one… (with something usable)

¯_(ツ)_/¯

But truth be told, there are services like NextDNS that manage to block youtube, probably just at a DNS level, you could impose some restrictions on clients, I think, the same service blocks bypass methods, I’ve mentioned this before.

Unfortunately, not being able to control users' devices, DoH/DoQ/DoT/VPN are simply enough....

The only real problem is the usage of VPN.
Everything else can be taken care of.

Do you say that you can stop me from browsing where I want without having 100% control of the client? PC/Mobil etc.
How do you block DoH/DoQ/DoT?

I would provide a report to this reply since you verbal abuse for no reason. Hope admins will react in a good way with such a kind of replies.
Since you have no reply with useful information and don't like this post, you should have skip it instead of acting this rude.

As a new user in the forums I’m totally surprised in the comments that may seam coming from people lack knowledge or lack behaviors.

Hope moderators would take appropriate actions.

What was rude about telling you that you can’t do it?

Primo: Rextended just suggested to do a “Search” and you can find a lot of info.

Secundo: The youtube film was about “Holy war against >>masquarade<<” what is loosely connected to “how to efficently block using L7 filters” even if it was mentioned there.

Tertio: … you want to block YouTube while learning yourself from YouTube … kind of technical oxymoron :slight_smile: :slight_smile: :slight_smile:
a8.PNG

I had the same problem in the past, and I soon realized I had to replace with a firewall with application control. You don’t really need to spend billions, depending on your needs you can find consumer devices that do the job at a very low prices. The solution provided in the previous post is still good, using a dns service (you can even find free ones) that allows you to configure specific blocks. Take into account that in this case, you need to prevent users from using different dns. Mikrotik is mostly a powerful router, but when L7 comes into account, you need other options. I agree with you that in this forum, I’would’t expect people to answer “disable internet to users”

Depending on your needs, you could go the opposite way, allow the sites you really need, then block everything else. This will certainly block youtube.
If you need to ONLY block youtube … I simply can’t imagine why?

I think that with all the means that are available now (ignoring VPN & Co.),
thinking of blocking something like youtube, that uses CDNs, shared servers, and part of those servers forcefully must be allowed for use other wanted sites,
is impossible.
Also because trivially in Firefox just click on “Use DoH NextDNS”, and you end up with DNS via HTTPS on CDNs, and not on static IPs…



/ip firewall raw add action=drop chain=prerouting comment="Ban QUIC" dst-port=443 protocol=udp

And modern browsers have started supporting HTTPS. Voila!