n/baipiaou/OshekherO · 2 个月前
注册 登录
n/baipiao · 2 个月前 · 238 次浏览
u/OshekherO白银

Zero-Server Reverse Proxy! Build Your Own Reverse Proxy on Cloudflare Workers — No VPS, No Nginx

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:

  1. Domain Mapping: Map one or more custom domains/subdomains to upstream targets.
  2. Region & IP Blocking: Deny access by country code (ISO 3166-1 alpha-2) or IP address.
  3. URL Rewriting: Automatically rewrite URLs in HTML, JS, CSS, and JSON responses.
  4. Text Replacement Engine: Replace arbitrary strings in response bodies via a simple dictionary.
  5. HTMLRewriter Support: Efficient stream-based HTML transformation using Cloudflare's native API.
  6. Security Headers: Injects X-Content-Type-Options, X-Frame-Options, X-XSS-Protection, and more.
  7. Ad Removal: Strips ad-injecting <script> and <iframe> blocks from proxied pages.
  8. CORS Support & HTTPS Enforcement & Cache Toggle: All controlled by a single config flag.
  9. 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.

5
6
登录后参与讨论。
海外原生IP VPS,稳定访问全球网络

还在为IP不纯、平台风控、频繁验证而烦恼? 丽萨主机海外原生IP VPS,双ISP住宅IP,覆盖美国、香港、日本、新加坡、台湾、德国、越南、英国等热门地区,适合跨境电商、社媒运营、AI工具、流媒体及海外业务使用。

lisahost.com 了解更多

6 条回复

排序
  1. WebURL 钻石 钻石会员 2 个月前

    謝謝指數~學習下.....點讚~

    0
  2. Mike-Leone 无双 指导顾问 2 个月前

    这不就是SiteProxy。。。

    0
  3. aiwentisika 黄金 2 个月前

    感谢佬的分享

    0
  4. aoooeg 白银 2 个月前

    这个好啊

    0
  5. xiayu1 青铜 2 个月前

    大佬,厉害

    0
  6. hdxhjd 黄金 2 个月前

    感谢分享

    0