hosts_tool_win 是一个自动从网络下载,替换windows系统hosts文件的脚本
- 编辑脚本,设置自己需要的hosts源地址
set HostsSource="http://your_raw_hosts_file"
- hosts失效的双击运行一下
- 搞定!
推荐一些好用的hosts源,只需要选择一个Raw Source就好
Author | Repo | Raw Source | Comments |
---|---|---|---|
Lerist | Lerist/Go-Hosts | https://raw.githubusercontent.com/Lerist/Go-Hosts/master/hosts | 常用Q外网站,更新快,支持youtube视频播放 |
Lerist | Lerist/Go-Hosts | https://raw.githubusercontent.com/Lerist/Go-Hosts/master/hosts-ad | 同上,去广告 |
racaljk | racaljk/hosts | https://raw.githubusercontent.com/racaljk/hosts/master/hosts |
脚本源码来源于网上,出处我现在找不到了,我在源码基础上稍作了修改,感谢源码作者☺