V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
gnup
V2EX  ›  Google

hosts 屏蔽谷歌后,反而能快速打开一些国外网站

  •  
  •   gnup · 2015-01-02 14:42:18 +08:00 · 5968 次点击
    这是一个创建于 3373 天前的主题,其中的信息可能已经有所发展或是发生改变。

    下面6行保存成 a.bat 然后运行
    @echo off
    echo. >>c:\windows\system32\drivers\etc\hosts
    echo 0.0.0.0 www.google.com >>%winrdir%\system32\drivers\etc\hosts
    echo 0.0.0.0 apis.google.com >>%winrdir%\system32\drivers\etc\hosts
    echo 0.0.0.0 fonts.googleapis.com >>%winrdir%\system32\drivers\etc\hosts
    echo 0.0.0.0 ajax.googleapis.com >>%winrdir%\system32\drivers\etc\hosts

    比如
    http://distrowatch.com/
    http://www.wowhead.com/
    ...
    ...
    不用卡在连Google上,有些网站很快就打开了。
    还有什么域名可以屏蔽的吗?

    11 条回复    2015-01-04 17:05:39 +08:00
    aiwha
        1
    aiwha  
       2015-01-02 15:05:05 +08:00 via Android
    广告推广、流量统计之类的干掉,当然会快些了,不过用0.0.0.0不好吧?最好是127.0 .0.1。。。。
    jings
        2
    jings  
       2015-01-02 15:21:55 +08:00 via Android
    屏蔽谷歌。。。
    Showfom
        3
    Showfom  
       2015-01-02 15:23:19 +08:00
    你这样的话很多国外网站的 jQuery 都无法加载咯
    skydiver
        4
    skydiver  
       2015-01-02 15:25:03 +08:00
    @aiwha 127.0.0.1没法保证屏蔽,因为本地可能部署有http srv
    loading
        5
    loading  
       2015-01-02 15:28:59 +08:00 via iPad
    希望有人能写个浏览器扩展,rewrite google的各种库。
    Mavious
        6
    Mavious  
       2015-01-02 15:30:04 +08:00 via Android
    用adblockplus干掉几个谷歌api就行了,国外论坛速度快好多。
    wulongqiu
        7
    wulongqiu  
       2015-01-02 16:00:53 +08:00
    主要是 Google Fonts,次之是 Google 提供的 jQuery 之类的公共 CDN,Google Adsense 和 Google 统计可以异步加载,影响不算大的。
    2twoOwO
        9
    2twoOwO  
       2015-01-02 18:52:37 +08:00
    我直接把后面那几个域名加到autoproxy里,至于谷歌的统计、广告,我火狐装了NoSctipt禁止这些域名运行脚本,另外还有Ghostery屏蔽各种跟踪
    xinhugo
        10
    xinhugo  
       2015-01-02 20:10:26 +08:00
    环球时报|若Gmail为中方所封 使用者应接受现实
    yexm0
        11
    yexm0  
       2015-01-04 17:05:39 +08:00
    所以现在就出来各种完全屏蔽google服务的插件了.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   939 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 20:51 · PVG 04:51 · LAX 13:51 · JFK 16:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.