大网数据广告活动
服务器运维问答

Mikrotik - redirecting YouTube to a local friendly page

· 52CE 我爱测

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…

问题原文

原帖链接 · JefersonLemos · CC BY-SA 3.0

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?

社区高分解答

原帖链接 · Tom · CC BY-SA 3.0

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 )

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。