SwitchHosts! 是一款能够一键添加、修改、切换 hosts 文件的跨平台小工具,支持 Windows、macOS 以及 Linux,图形界面,简单易用。@Appinn
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 1 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 1](https://blog.ytso.com/wp-content/themes/justnews/themer/assets/images/lazy.png)
小众软件曾经介绍过 SwitchHosts!,当时还只有 Windows 版本,不过功能基本相同。如今已经切换到了 Electron,支持更多的系统,也更漂亮了。
先来回顾下老界面:
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 2 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 2](https://blog.ytso.com/wp-content/themes/justnews/themer/assets/images/lazy.png)
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 2 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 2](http://ytso-blog-oss-img.oss-cn-beijing.aliyuncs.com/wp-content/uploads/2021/09/20/20210920_6148174c0c690.png)
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 2 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 2](https://blog.ytso.com/wp-content/themes/justnews/themer/assets/images/lazy.png)
SwitchHosts! 的操作方式是始终会显示一个当前 hosts 状态:系统 Hosts,你可以添加各种规则,并且为规则命名。
规则可以是本地,也可以是远程规则,又或者是组合规则(同时开启几套规则),可以非常方便的组合出需要的方案:
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 3 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 3](https://blog.ytso.com/wp-content/themes/justnews/themer/assets/images/lazy.png)
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 3 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 3](http://ytso-blog-oss-img.oss-cn-beijing.aliyuncs.com/wp-content/uploads/2021/09/20/20210920_6148174d06fbe.png)
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 3 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 3](https://blog.ytso.com/wp-content/themes/justnews/themer/assets/images/lazy.png)
当开启一套规则的时候,自动添加进 系统 Hosts 中,关闭则自动删除,非常好用。
而在 macOS 中,还支持 Alfred workflow 快速切换,更加方便:
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 4 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 4](https://blog.ytso.com/wp-content/themes/justnews/themer/assets/images/lazy.png)
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 4 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 4](http://ytso-blog-oss-img.oss-cn-beijing.aliyuncs.com/wp-content/uploads/2021/09/20/20210920_6148174ec02fd.png)
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 4 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 4](https://blog.ytso.com/wp-content/themes/justnews/themer/assets/images/lazy.png)
对于开发者来说,这极大的减轻了工作量。
青小蛙还拍了一段视频:
目前青小蛙感觉 SwitchHosts! 唯一的问题可能就是为了跨平台而引入的 Electron 导致尺寸很大(Win 版本超过 50MB),所以…看你们自己的选择咯。
SwitchHosts! 官方主页在这里。
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/download/165450.html
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 2 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 2](http://img1.appinn.net/2011/12/10101101000.png)
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 3 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 3](https://img3.appinn.net/images/201810/2018-10-185-30-22.png!o)
![SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 4 SwitchHosts! - 快速添加、修改、切换 hosts 文件 [Win/macOS/Linux] 4](https://img3.appinn.net/images/201810/screen-shot2.png!o)