A fast, efficient, Zero Dependency Cloudflare Proxy with AD Blocker support.
- Zero Dependency
- Origin Replacer
- AD Blocker
- Text Replacer
- On-Demand Host configuration
You need to change two ENVIROMENT VARIABLES
in the Cloudflare Workers
dashboard.
BASE
- The URL of the website you want to proxy. (e.g.https://developers.cloudflare.com
)FEATURE_FLAGS
- Feature flags you want to opt-in. (e.g.AD_BLOCKER,TEXT_REPLACER,ON_DEMAND_HOST_CONFIG
)
Additionally, open the wrangler.toml
file and change the BASE
and FEATURE_FLAGS
values.
Features flags are comma separated values that you can use to enable or disable features. You need to put these flags in the FEATURE_FLAGS
environment variable.
AD_BLOCKER
- Enable AD BlockerTEXT_REPLACER
- Enable Text ReplacerON_DEMAND_HOST_CONFIG
- Enable On-Demand Host configuration by adding?host=example.com
in the URL
- Clone the repository
- Install the dependencies
- Run the development server
git clone https://github.com/tuhinpal/cf-proxy.git
cd cf-proxy
npm install
npm run dev
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.
Don't use this for any illegal activities. You are responsible for your actions. This project is made to test the HtmlRewriter runtime API of Cloudflare Workers.