将任意标准 PHP 虚拟主机转变为抗审查的隐蔽 VPN 与多协议代理。无需 VPS。零服务器成本。对 DPI 防火墙完全不可见。
php-vpn • web-vpn • stealth-vpn • anti-censorship • dpi-bypass • php-proxy • cpanel-vpn • shared-hosting-proxy • socks5-proxy • mtproto-proxy • telegram-proxy • webtunnel • http-tunnel • free-vpn • proxy-server
传统 VPN 协议(OpenVPN、WireGuard、IPsec)和代理工具(Shadowsocks、V2Ray)需要具备 root 权限并开放 UDP/TCP 端口的专用 Linux 虚拟专用服务器(VPS)。此外,现代深度包检测(DPI)系统会主动检测并限速或阻断它们的握手过程。
PHP-WebVPN 通过革命性的无服务器方案解决了这一问题:
404 Not Found 页面,使你的端点对自动化扫描器保持隐藏。8443)和 SOCKS5 Obfuscated2(1080)服务器,可在 Android、iOS 和桌面端实现无缝一键连接。+---------------------------------------------------------------------------------+
| CLIENT DEVICE |
| |
| +--------------------+ +--------------------+ +---------------+ |
| | Web Browsers | | Telegram Client | | System Apps | |
| | (Chrome/Edge/etc.) | | (Mobile & Desktop) | | (HTTP/SOCKS) | |
| +---------+----------+ +---------+----------+ +-------+-------+ |
| | | | |
| v v v |
| +---------------------------------------------------------------------------+ |
| | Local Client Daemon | |
| | • Local Root CA & Dynamic TLS Minting (Port 8080) | |
| | • MTProto Proxy (Port 8443) & SOCKS5 Obfuscated2 (Port 1080) | |
| | • Round-Robin Scheduler & Connection Affinity Pool | |
| | • Anti-Bot JS Challenge Resolver (for free hosting providers) | |
| +-------------------------------------+-------------------------------------+ |
+----------------------------------------|----------------------------------------+
|
| Encrypted HTTPS POST Tunnels
| (Indistinguishable from Web Traffic)
v
+---------------------------------------------------------------------------------+
| REMOTE PHP BACKEND POOL (Shared Hosting) |
| |
| +----------------------------+ +--------------------------------+ |
| | Hosting Node A (proxy.php) | | Hosting Node B (proxy.php) | |
| | IP: 185.x.x.x | | IP: 194.x.x.x | |
| | • cURL Execution Engine | | • cURL Execution Engine | |
| | • 404 Decoy Protection | | • 404 Decoy Protection | |
| +--------------+-------------+ +---------------+----------------+ |
+-----------------|-------------------------------------------|-------------------+
| |
+---------------------+---------------------+
|
v
+-----------------+
| Target Internet |
| Sites & APIs |
+-----------------+
| 功能 | OpenVPN / WireGuard | Shadowsocks / V2Ray | Tor 网络 | PHP-WebVPN |
|---|---|---|---|---|
| 需要专用 VPS | 是 | 是 | 否 | 否($0/月托管) |
| 需要 Root 权限 | 是 | 是 | 否 | 否(纯 PHP 脚本) |
| 抗 DPI 防火墙能力 | 差(易被封锁) | 中等 | 高 | 高(标准 HTTPS) |
| 诱饵 404 保护 | 否 | 可选 | 否 | 内置 |
| 免管理员 Windows 代理 | 否 | 需要驱动 | 否 | 是(WinINet API) |
| Telegram MTProto 支持 | 否 | 否 | 否 | 内置(端口 8443) |
| 多主机负载均衡 | 手动配置 | 配置复杂 | 动态 | 内置(轮询) |
server/proxy.php 并设置你的秘密授权密钥:
$CONFIG = [
'secret_key' => 'YourStrongSecretKeyHere',
...
];
proxy.php 和 .htaccess 上传到你的 Web 主机(例如 public_html/proxy.php)。https://your-domain.com/proxy.php?test=1&key=YourStrongSecretKeyHere
一条 JSON 响应确认 status: ok 和服务器 IP,即表示设置成功。client/config.json 并配置你的服务器 URL 和密钥:
{
"server_urls": [
"https://your-domain.com/proxy.php"
],
"secret_key": "YourStrongSecretKeyHere",
"listen_host": "127.0.0.1",
"listen_port": 8080,
"auto_system_proxy": true,
"verify_ssl": false
}
client/run.bat(或执行 python proxy_client.py)。Ctrl + C 关闭隧道并恢复默认网络设置。运行专用的 Telegram 代理服务器:
telegram/run.bat。telegram/run.sh 或 python3 socks_server.py。tg://proxy?... 链接。client/proxy_client.py)options:
--url URL Remote proxy.php backend URL (can be repeated or comma-separated)
--key KEY Secret authorization key
--port PORT Local proxy listening port (default: 8080)
--host HOST Local binding address (default: 127.0.0.1)
--sysproxy Enable Windows system-wide proxy automatically
--no-sysproxy Disable automatic Windows system proxy
--install-ca Install Root CA into Windows store and exit
--remove-ca Remove Root CA from Windows store and exit
--test Test backend connectivity and exit
telegram/socks_server.py)options:
--socks-port PORT SOCKS5 listening port (default: 1080)
--mtproto-port PORT MTProto listening port (default: 8443)
--host HOST Local listening host (default: 0.0.0.0)
--secret SECRET 32-character hexadecimal MTProto secret
--url URL Remote proxy.php backend URL
--key KEY Secret authorization key
--test Check backend health and exit
运行自动化集成测试套件:
python tests/test_system.py
验证根 CA 生成、动态 TLS 签发、系统代理切换、模拟 PHP 后端通信、HTTP GET/POST 中继以及 HTTPS CONNECT 隧道(6/6 项测试通过)。
本项目为开源项目,采用 MIT 许可证(参见 Open Source Initiative)。