您的位置:首页 > 编程语言 > Go语言

批处理 自动添加HOSTS文件中Google加密服务器的IP地址

2011-11-21 12:22 609 查看
@echo -----------------------------------------------------
@echo 请如果你的浏览器以前没有访问过 Google.com in English
@echo 或者做过清理,那么你需要先访问一次www.google.com/ncr
@echo 然后才可以使用加密的 Google 进行搜索。
@echo -----------------------------------------------------
@pause
@echo.>>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn0.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn1.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn2.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn3.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn4.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn5.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn6.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn7.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn8.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted-tbn9.google.com >>%systemroot%\system32\drivers\etc\hosts
@echo 203.208.46.148 encrypted.google.com.hk >>%systemroot%\system32\drivers\etc\hosts
@echo 域名解析记录已经添加完毕
@echo
@echo.
@echo step2:下面将更新你的域名缓存,请关闭你的浏览器,IE/FIREFOX/遨游等……
@pause
@echo.
@echo 请确认浏览器已关闭!
@pause
@ipconfig /flushdns
@ipconfig /flushdns

@echo 域名解析缓存已更新

@echo HOSTS已经顺利执行完毕, 欢迎享受自由搜索!请直接按任意键退出!
@pause
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐