https 可以访问 v2ex,求详细解释?

2015 年 3 月 2 日
 chdreamflying

v2ex最近被科学了,但https可以继续访问,想知道是为什么?

4420 次点击
所在节点    V2EX
18 条回复
wuwuyun
2015 年 3 月 2 日
URL封锁只能匹配明文 SSL是加密的
chdreamflying
2015 年 3 月 2 日
@wuwuyun url本身也加密?那dns怎么解析域名啊?
wuwuyun
2015 年 3 月 2 日
dns是另外的协议,和https又没关系,端口都不一样啊
一个默认53 一个443
kslr
2015 年 3 月 2 日
@chdreamflying 浏览器数据传输走SSL,但是系统还是把v2ex.com送到DNS服务器查询。
kslr
2015 年 3 月 2 日
@chdreamflying 我记得有篇文章是“打开网页的过程浏览器都做了那些事”,你得去看看
yanyuechuixue
2015 年 3 月 2 日
封明文?
难道不是封IP么?
如果没用cdn 的话。
wuwuyun
2015 年 3 月 2 日
xiaozhizhu1997
2015 年 3 月 2 日
@yanyuechuixue 封的是关键字。
chdreamflying
2015 年 3 月 2 日
@kslr 谢谢,回头找找这篇文章!
linhua
2015 年 3 月 2 日
@chdreamflying 可用curl试验一下
curl 'https://v2ex.ih06.com/t/173233' -H 'Host: www.baidu.com'
这个可以
但是
curl 'https://v2ex.ih06.com/t/173233' -H 'Host: www.v2ex.com'
这个不行
Septembers
2015 年 3 月 2 日
Felldeadbird
2015 年 3 月 2 日
@Septembers 谷歌就是一个最好的例子了。
chdreamflying
2015 年 3 月 3 日
@linhua 我试了,两个都不行,返回的错误“curl: (56) Recv failure: Connection was aborted”
linhua
2015 年 3 月 3 日
@chdreamflying 如果先运行第二个命令,会被reset一段时间(30秒左右),需要等待一会儿再去运行第一个
chdreamflying
2015 年 3 月 3 日
@linhua 确实是这样的,能解释下为什么是这样的吗?
linhua
2015 年 3 月 3 日
@chdreamflying 这是GFW的特性,暂时加目标ip为黑名单。
linhua
2015 年 3 月 3 日
@chdreamflying 可把前面的换为ip地址,这样更清楚一点,如
ping www.v2ex.com
PING smile.v2ex.com (104.238.160.183) 56(84) bytes of data.
64 bytes from 104.238.160.183: icmp_seq=1 ttl=46 time=90.5 ms
64 bytes from 104.238.160.183: icmp_seq=2 ttl=46 time=72.2 ms
然后
curl 104.238.160.183 -H 'Host: www.baidu.com'
linhua
2015 年 3 月 3 日
@chdreamflying
curl 104.238.160.183 -H 'Host: www.baidu.com'----改为--->>
curl 'http://104.238.160.183/t/173233' -H 'Host: www.baidu.com'

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.ih06.com/t/173982

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX