Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置了Https仍然被运营商劫持 #10

Open
hy-inger opened this issue Jun 28, 2019 · 0 comments
Open

配置了Https仍然被运营商劫持 #10

hy-inger opened this issue Jun 28, 2019 · 0 comments

Comments

@hy-inger
Copy link
Owner

我们手动输入网址的时候经常习惯不会去输入头部协议,虽然现在网站基本都支持https协议了,但很多网站还会保留http协议作为跳转。

没有头部协议的网址会默认加上http协议,然后再根据实际情况向https跳转。
20190505_152719

因此运营商便利用http尚未跳转到https的这个机会,对http进行了劫持,拦截其后续跳转。然后就可以对劫持的页面为所欲为了。比如,将原页面放入iframe,外层插入广告给用户访问。

预防:检测头部协议是否为https或检测页面是否被嵌套放置,再做强制跳转。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant