该介绍目前仅提供英文版本。
🌐 Project Overview
CF Proxy EX is a powerful, serverless proxy solution built on Cloudflare Workers. It provides free, fast, and secure proxy services with support for AI chat (GPT4o/Claude3 via DuckDuckGo), GitHub acceleration, and access to blocked resources like Libgen. The project supports multi-platform deployment and offers advanced features beyond traditional proxy services.
⭐ Core Features
-
🤖 AI Chat Integration
- DuckDuckGo AI chat support
- Access to GPT-4o and Claude 3
- Real-time AI conversations
-
🚀 Enhanced Proxy Capabilities
- GitHub acceleration and access
- Libgen unlock support
- Google Maps and other services
- Seamless website proxying
-
⚡ Performance & Security
- Serverless architecture on Cloudflare
- Global edge network distribution
- Security password protection
- Cookie scope management
-
🔧 Multi-Platform Deployment
- Cloudflare Workers
- Deno platform support
- Easy configuration and setup
🛠️ Technical Architecture
Core Technology
- JavaScript - 100% JavaScript implementation
- Cloudflare Workers - Serverless edge computing
- Web Standards - Modern web APIs and protocols
Key Improvements
- Path Simplification - Removed
/proxy/prefix for easier usage - Redirect Handling - Manual 3XX redirect processing
- Header Management - Complete proxy information replacement
- Resource Loading - Relative to absolute path conversion
- Cookie Security - Scoped cookie management
- CSP Modification - Content Security Policy adjustments
🚀 Quick Start
Online Demo
- Main Site: y.demo.lhyang.org
- DuckDuckGo Chat: Access AI chat through the proxy
- Google Maps: Full Google Maps functionality
Basic Usage
# Add your proxy domain before any URL
https://your-domain.com/https://github.com
# Example with DuckDuckGo AI chat
https://your-domain.com/https://duckduckgo.com/?t=h_&q=hi&ia=chat
Deployment Options
Cloudflare Workers
- Create a new Cloudflare Worker
- Copy the worker script
- Configure custom domain
- Set security password (recommended)
Deno Platform
- Deploy to Deno Deploy
- Configure environment variables
- Set up custom domain
🔒 Security Features
Password Protection
- Cookie-based Authentication - Secure access control
- Customizable Password - Set your own security password
- Access Control - Prevent unauthorized usage
Privacy Protection
- Scoped Cookies - Limited cookie domain scope
- Header Sanitization - Remove proxy-related information
- Content Filtering - Safe content delivery
📋 Configuration
Environment Variables
# Security password (highly recommended)
const password = "your-secure-password";
# Cookie configuration
const passwordCookieName = "proxy-auth";
# Domain settings
const customDomain = "your-domain.com";
Security Best Practices
- Always enable password protection
- Use inconspicuous subdomain names (e.g.,
cdn.example.com) - Avoid obvious proxy-related names like
proxy.example.com - Regular password updates
🎯 Use Cases
- Educational Access - Bypass network restrictions in schools
- Research Tools - Access academic resources like Libgen
- Development - GitHub acceleration for developers
- AI Interaction - Free access to premium AI models
- Privacy Browsing - Anonymous web browsing
🌟 Advanced Features
Resource Injection
- XMLHttpRequest Proxy - Form submission support
- Fetch API Modification - Modern API compatibility
- Document Observer - Dynamic link conversion
- Content Type Management - Proper encoding handling
Multi-Language Support
- Chinese Interface - Native Chinese support
- International Usage - Global accessibility
- UTF-8 Encoding - Proper character handling
🔗 Resources
- Live Demo: y.demo.lhyang.org
- GitHub Repository: 1234567Yang/cf-proxy-ex
- Documentation: Comprehensive setup guides included
- Community: Active issue tracking and contributions
📖 Documentation
Setup Guides
⚠️ Important Notes
- Educational Purpose: Designed for learning proxy principles and implementation
- Security Warning: Avoid logging into personal accounts through the proxy
- Legal Compliance: Strictly for legal and legitimate use cases only
- Cookie Isolation: Enhanced cookie security compared to original implementations