233boy / Xray

最好用的 Xray 一键安装脚本 & 管理脚本
https://233boy.com/xray/xray-script/
GNU General Public License v3.0
1.35k stars 695 forks source link

ChatGPT网站不能正常打开,浏览器报403 #32

Open johnray22 opened 10 months ago

johnray22 commented 10 months ago

使用centos和ubuntu都尝试过,安装xray脚本后,gpt打不开,尝试过之前提的删除privite ip那段json,但也没效果。

安装x-ui面板(sing-web)连接则可以正常打开gpt,所以确定不是机房、VPS或客户端问题。但是这个面板的速度不如233大神的脚本,

具体问题为可以进入GPT界面,但左侧显示Unable to load history,

查看network可以看到请求出问题: https://chat.openai.com/backend-api/accounts/check/v4-2023-04-27 Request Method: GET Status Code: 403 Remote Address: 127.0.0.1:10809

Request URL: https://chat.openai.com/backend-api/conversations?offset=0&limit=28&order=updated Request Method: GET Status Code: 403 Remote Address: 127.0.0.1:10809 Referrer Policy: same-origin

233boy commented 10 months ago

@johnray22

这个问题很奇怪,如果同一个机子,用 xui 没问题,证明 IP 没被屏蔽,

你尝试套一下 warp 看看

johnray22 commented 10 months ago

我看了下x-ui的config.json,发现确实有warp的配置 { "log": null, "routing": { "domainStrategy": "AsIs", "rules": [ { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "domain": [ "geosite:cn" ], "outboundTag": "blocked", "type": "field" }, { "ip": [ "geoip:private", "geoip:cn" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" }, { "type": "field", "outboundTag": "socks5-warp", "domain": [ "ip.gs" ] }, { "type": "field", "outboundTag": "wireguard-warp", "domain": [ "geosite:openai", "domain:sentry.io" ] }, { "type": "field", "outboundTag": "ipv6-out", "domain": [ "ipget.net" ] }, { "type": "field", "outboundTag": "ipv4-out", "network": "udp,tcp" } ] }, "dns": null, "inbounds": [ { "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "streamSettings": null, "tag": "api", "sniffing": null }, { "listen": null, "port": 51842, "protocol": "vmess", "settings": { "clients": [ { "id": "29e3defc-a1bf-43ec-a569-2d9b5bef0410" } ], "disableInsecureEncryption": false }, "streamSettings": { "network": "ws", "security": "none", "wsSettings": { "path": "/ws1", "headers": {} }, "sockopt": { "tcpMaxSeg": 1440, "tcpFastOpen": false, "domainStrategy": "AsIs", "tcpcongestion": "", "acceptProxyProtocol": false, "tcpKeepAliveIdle": 0, "tcpKeepAliveInterval": 0, "tcpUserTimeout": 10000, "interface": "" } }, "tag": "inbound-51842", "sniffing": { "enabled": true, "destOverride": [ "http", "tls", "quic" ] } } ], "outbounds": [ { "protocol": "blackhole", "settings": {}, "tag": "blocked" }, { "tag": "ipv4-out", "protocol": "freedom", "settings": {} }, { "tag": "ipv6-out", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv6" } }, { "tag": "socks5-warp", "protocol": "socks", "settings": { "servers": [ { "address": "127.0.0.1", "port": 40000 } ] } }, { "tag": "wireguard-warp", "protocol": "wireguard", "settings": { "secretKey": "wBgj79mhiENspSFQHIULqHP8IKFJJcdq37R51DJvDlk=", "address": [ "172.16.0.2/32", "2606:4700:110:845b:e753:d262:c6f:db5b/128" ], "peers": [ { "publicKey": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=", "allowedIPs": [ "0.0.0.0/0", "::/0" ], "endpoint": "engage.cloudflareclient.com:2408" } ], "reserved": [ 249, 159, 96 ] } } ], "transport": null, "policy": { "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "stats": {}, "reverse": null, "fakeDns": null } 但是我很久没搭梯子了,对最近的这些什么warp、reality都不太熟,没找到配置warp的教程

yinft commented 10 months ago

同问,我的网页端没有问题,手机端就提示vpn,但是我明明用的是同一个机场,可以确定机场是可以访问gpt的

The-GO commented 8 months ago

套CDN有些网站403错误,换其他脚本没问题,不是机器跟客户端的问题