A Cloudflare Workers project that manages and rotates multiple proxy endpoints for GET and POST requests.
This project acts as a proxy manager that distributes requests across multiple proxy endpoints (implemented using proxy-single) to rotate IPs for each request.
-
Clone this repository
-
Deploy to Cloudflare Workers:
wrangler deploy
-
Create a D1 database and bind it to your worker:
wrangler d1 create d1_proxy_manager-production wrangler d1 execute d1_proxy_manager-production --file ./create_d1/initial_setup.sql
-
Configure the following Secret Environment Variables in your Cloudflare Workers dashboard:
EnvSecret_tokenProxySelf: A random string that will serve as your authentication tokenEnvSecret_listProxy: A comma-separated list of your proxy URLs (e.g., "proxy-01.com,proxy-02.com,proxy-03.com")
Send requests to your worker URL with the following parameters:
https://your-worker.workers.dev/proxy-manager?token=YOUR_TOKEN&url=TARGET_URL
Parameters:
token: Your authentication token (must match EnvSecret_tokenProxySelf)url: The target URL you want to request through the proxy
Supported methods:
- GET
- POST
The system will automatically rotate through your proxy list for each request, distributing the load and providing different IPs.
For setting up the individual proxy endpoints, please refer to proxy-single. Each proxy-single instance can be deployed to different AWS regions, allowing for up to 33 different IP addresses for rotation.