V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
aruisi
V2EX  ›  宽带症候群

深受运营商劫持困扰,如果我用 hosts 强制把 http://baidu.com 跳转到 https://baidu.com 会出现什么?

  •  
  •   aruisi · 2015-02-15 15:07:10 +08:00 · 6278 次点击
    这是一个创建于 3357 天前的主题,其中的信息可能已经有所发展或是发生改变。
    10 条回复    2015-02-17 05:34:15 +08:00
    choury
        1
    choury  
       2015-02-15 15:15:08 +08:00 via Android
    这样你访问的还是你的独立主机,而不是百度
    Koell
        2
    Koell  
       2015-02-15 15:18:16 +08:00
    我这百度自动跳转为https...但是有时候还是会带小尾巴。
    laoyur
        3
    laoyur  
       2015-02-15 15:19:56 +08:00
    楼主,你既然都这么跩了,干吗不直接用google呢
    Koell
        4
    Koell  
       2015-02-15 15:19:56 +08:00
    这么做好像也可行的样子...可以试一下。。。
    cutehalo
        5
    cutehalo  
       2015-02-15 15:26:18 +08:00   ❤️ 1
    楼主用chrome的话 可以直接在 chrome://net-internals/#hsts 里面添加强制使用https的域名
    peterxutong
        6
    peterxutong  
       2015-02-15 15:31:22 +08:00
    为啥不用google,bing呢
    sandtears
        7
    sandtears  
       2015-02-15 15:36:02 +08:00
    我很好奇,你写了 hosts 文件之后,通过 http 访问的是你的 VPS。
    难道你通过 https 访问 www.baidu.com 就不是你的 VPS 了?
    kerr92
        8
    kerr92  
       2015-02-15 15:37:00 +08:00
    楼主这么兜一大圈,为什么不像5楼说的在chrome://net-internals/#hsts里加上baidu.com?或者装个HTTPS Everywhere强制https访问呢?百度至少还支持全站https,不像知乎、微博,想强制都强制不了
    ScotGu
        9
    ScotGu  
       2015-02-15 15:43:24 +08:00
    一般运营商就劫持DNS而已。
    本机自建TCP转发DNS,可以搞定大部分劫持。
    archbishop
        10
    archbishop  
       2015-02-17 05:34:15 +08:00 via Android   ❤️ 1
    hsts只能加www.baidu.com。因为百度不是所有的页面都支持加密连接。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3758 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:33 · PVG 18:33 · LAX 03:33 · JFK 06:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.