GoForum › 🌐 V2EX
建议针对 Claude, ChatGPT 设置 hosts 文件,而 Surge 这些设置不读取 hosts 文件
ratazzi ·
2026-09-16 14:43 ·
0 次点赞 · 2 条回复
/etc/hosts
127.0.0.1 api.anthropic.com
127.0.0.1 claude.ai
127.0.0.1 chatgpt.com
127.0.0.1 chat.openai.com
127.0.0.1 ws.chatgpt.com
然后 Surge 之类的设置不要读取 hosts 文件,这样只有在代理工作时才能正常访问,代理崩溃掉或者开机后启动顺序在 Claude ,ChatGPT 之后也没关系,避免直连
2 条回复
terrancesiu · 2026-09-16 14:53
手搓的 kill switch 功能,简单又好用。
添加回复
你还需要 登录
后发表回复
好想法!