hosts 持续更新
使用hosts前建议把国内某杀毒软件和某全家桶关了!!!缺点
可用ip会越来越少,失效需要更新
Google 全球 IP 地址库
最新可用的google hosts文件。镜像
https://github.com/songleo/update_hosts
2016 Google hosts 持续更新
2016 Google hosts
最新稳定有效谷歌IP(hosts文件)下载失效
最新Google hosts 持续更新(增强版[标准+去广告+杜绝导航])
2017 Google hosts 持续更新
更新最新可用的上外网hosts
把下面的代码保存为Windows自动替换脚本.bat
@echo off
mode con lines=27 cols=60
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
:main
cls
color 2f
echo √√ √√ √√√ √√√√ √√√√√ √√√√
echo √ √ √ √ √ √ √ √ √ √ √
echo √ √ √ √ √ √ √
echo √√√√ √ √ √√ √ √√
echo √ √ √ √ √ √ √
echo √ √ √ √ √ √ √
echo √ √ √ √ √ √ √ √ √
echo √√ √√ √√√ √√√√ √√√ √√√√
echo.-----------------------------------------------------------
echo.如有360等安全软件提醒,请勾选允许和不再提醒!
echo.
echo.警告:执行该命令你的原hosts将被覆盖!
echo.
echo.m69w.com less is more
echo.免费的往往是最贵的
echo.
color 2e
echo.-----------------------------------------------------------
echo.请选择使用:
echo.
echo. 1.使用穿墙host
echo.
echo. 2.恢复初始host
echo.-----------------------------------------------------------
if exist "%SystemRoot%\System32\choice.exe" goto Win7Choice
set /p choice=请输入数字并按回车键确认:
echo.
if %choice%==1 goto host DNS
if %choice%==2 goto CL
cls
"set choice="
echo 您输入有误,请重新选择。
ping 127.0.1 -n "2">nul
goto main
:Win7Choice
choice /c 12 /n /m "请输入相应数字:"
if errorlevel 2 goto CL
if errorlevel 1 goto host DNS
cls
goto main
:host DNS
cls
color 2f
copy /y "hosts" "%SystemRoot%\System32\drivers\etc\hosts"
ipconfig /flushdns
echo.-----------------------------------------------------------
echo.
echo 好了,覆盖本地hosts并刷新本地DNS解析缓存成功!
echo.
echo 现在去打开Google、Twitter、Facebook、Gmail、谷歌学术吧!
echo.
goto end
:CL
cls
color 2f
@echo 127.0.0.1 localhost > %SystemRoot%\System32\drivers\etc\hosts
echo 恭喜您,hosts恢复初始成功!
echo.
goto end
:end
echo 请按任意键退出。
@Pause>nul
标签:hosts