/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 之后也没关系,避免直连
/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 之后也没关系,避免直连
1
deng1xia 15h 0m ago
好想法!
|
2
terrancesiu 14h 54m ago
手搓的 kill switch 功能,简单又好用。
|
3
coolcoffee 14h 49m ago
已加入 adguardhome dns 重写规则。
|