n/baipiaou/OshekherO · 2 เดือนที่แล้ว
สมัครสมาชิก เข้าสู่ระบบ
n/baipiao · 2 เดือนที่แล้ว · เข้าชม 259 ครั้ง
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
เข้าสู่ระบบเพื่อร่วมพูดคุย

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