Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

如何使用 Shadowfetch 进行 HTTP 代理和 WebSocket 代理?

2025-08-30 1.3 K

Shadowfetch 提供两种代理方式:HTTP 代理和 WebSocket 代理,使用都很简单:

HTTP 代理:
只需要把目标 URL 加到你部署的 Worker 地址后面,格式为:
https://你的_Cloudflare_Worker_域名/密码/https://目标网站/其他路径
例如:https://bequiet.pages.dev/fonts/https://destination.example.com/dns_query
这样请求就会被转发到 https://destination.example.com/dns_query,而不会暴露真实IP。

WebSocket 代理:
与 HTTP 代理类似,只需把目标协议换成 wss:// 开头,格式为:
wss://your_Cloudflare_Worker_domain/password/wss://target site/other paths
例如:wss://bequiet.pages.dev/fonts/wss://destination.example.com/chatroom
这样就实现了 WebSocket 的中转功能。

使用 Shadowfetch 进行代理的优势在于:所有请求都会去除 cf- 开头的敏感头信息,目标服务器无法获取你的地理位置和真实 IP。这种方式特别适合需要保护隐私的 API 请求或 WebSocket 连接场景。

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish