跳到正文

CF Proxy EX

维护中
1234567Yang/cf-proxy-ex

Cloudflare 超级代理:用 Cloudflare Worker 搭建免费的无服务器代理,支持 DuckDuckGo AI 聊天(GPT-4o/Claude 3)、GitHub 加速和 Libgen 访问。

在 GitHub 查看
星标
1857
Fork
684
关注
1857
未关闭 Issue
21

该介绍目前仅提供英文版本。

🌐 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

  1. Create a new Cloudflare Worker
  2. Copy the worker script
  3. Configure custom domain
  4. Set security password (recommended)

Deno Platform

  1. Deploy to Deno Deploy
  2. Configure environment variables
  3. 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

📖 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

按共同分类和标签排序的同类开源项目。

全部网络项目 →