Mikrotik – redirecting YouTube to a local friendly page

dnathstshttpsmikrotikredirect

I'm configuring a rb750. I would like to drop YouTube access and redirect to a friendly page located in our local webserver. I can drop using l7 firewall but I'm not able to redirect user because https. Specifically you tube uses some kind of technology that blocks this "interceptation". I tried by dnat and DNS too but both didn't work :(.
I've read about hsts ( https strict transport security) that works on chrome, Firefox and others and allow full https during a site navigation and that's why I'm not able to do this.
Have you guys some idea?

Best Answer

If you don't have administrative rights on the client, you can't. (because it's considered as an attack)

If you have administrative rights on the clients, you can install there your own certificate authority, and use a certificate signed by that certificate authority to redirect users using https (So you will comply with HSTS, and HPKP/PKP is bypassed for locally imported root).

If it's a hotspot with a welcome page, you can explain on that page why some websites are blocked. (See https://www.chromium.org/chromium-os/chromiumos-design-docs/network-portal-detection )

Related Topic