Hey NodeLoc folks, here's another handy project from the same author — CF users will love this one!
Project Link: https://github.com/OshekharO/CF-REVERSE-PROXY
Why Recommend It?
Want to set up a reverse proxy but:
- VPS costs money and needs maintenance
- Nginx config is a pain — certs, firewall, endless setup
- Need to accelerate a site or access it via a custom domain, but no good solution?
This project solves all of that! It's a collection of serverless reverse proxy scripts for Cloudflare Workers — deploy a fully functional reverse proxy on Cloudflare's global edge in minutes, no server, no VPS, no Nginx required.
✨ Key Features:
- Domain Mapping: Map one or more custom domains/subdomains to upstream targets.
- Region & IP Blocking: Deny access by country code (ISO 3166-1 alpha-2) or IP address.
- URL Rewriting: Automatically rewrite URLs in HTML, JS, CSS, and JSON responses.
- Text Replacement Engine: Replace arbitrary strings in response bodies via a simple dictionary.
- HTMLRewriter Support: Efficient stream-based HTML transformation using Cloudflare's native API.
- Security Headers: Injects
X-Content-Type-Options,X-Frame-Options,X-XSS-Protection, and more. - Ad Removal: Strips ad-injecting
<script>and<iframe>blocks from proxied pages. - CORS Support & HTTPS Enforcement & Cache Toggle: All controlled by a single config flag.
- Fully Serverless: Runs on Cloudflare's edge — no VMs, no containers, minimal latency.
📦 Script Collection (Multiple Options):
| Script | Highlights |
|---|---|
OshekharO/worker.js ⭐ |
Full-featured, subdomain mapping, recommended for production |
OshekharO/beta.js |
Adds streaming HTML transform, loop detection, timeout handling |
xiaoyang-sde/index.js |
Original lightweight proxy, simple config, great for beginners |
viperadnan/booster.js |
Performance boost — static caching, image compression, JS minification |
KusakabeSi/worker.js |
Multi-site proxy, string replacement, ad removal |
Clansty/proxy.js |
Telegram channel preview proxy, bypasses iframe restrictions |
ymyuuu/worker.js |
General-purpose proxy with Bootstrap 5 glassmorphism UI |
🛠️ Tech Stack:
Pure Cloudflare Workers native JavaScript, zero infrastructure, MIT licensed.
💡 Use Cases:
- Accelerate your own site or serve it via a custom domain
- Block access from specific regions/IPs
- Reverse proxy Telegram channel previews
- Learn Cloudflare Workers and edge computing
Finally:
The project is open source (MIT). If you find it useful, don't forget to give the author a Star ⭐️ on GitHub!
Link: https://github.com/OshekharO/CF-REVERSE-PROXY
Note: For educational and legitimate use only. Do not proxy sites you don't own or have permission to mirror, and respect Cloudflare's Terms of Service.
快银 VPN,一键连接全球节点,线路稳定、延迟低。支持 Windows、macOS 等多平台,TUN 全局模式覆盖全部应用流量。无需复杂配置,下载即用。
답글 6개
정렬