gnup
V2EX  ›  Google

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

  •  
  •   gnup · Jan 2, 2015 · 6935 views
    This topic created in 4158 days ago, the information mentioned may be changed or developed.

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