一、安装curl
下载之后将curl.exe放置在“C:\Windows\System32”路径下边
二、建立批处理文件auto-hosts.bat
用nodepad++或者subline打开文件,然后将下列代码粘贴进去:
curl -k -o hosts https://raw.githubusercontent.com/racaljk/hosts/master/hosts
move /Y hosts C:\Windows\System32\drivers\etc\hosts
ipconfig /flushdns
三、点击auto-hosts.bat执行
接下来你会发现可以访问谷歌了,当无法访问谷歌时可以再次执行该文件,
开启你的科学上网之路吧。