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

@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
posted @ 2011-11-21 12:22  完美视界  阅读(9)  评论(0)    收藏  举报