Bypassing Dynamic IP Whitelists with a Static VPS Proxy
A technical guide outlines a method to bypass dynamic IP whitelists used by financial and payment APIs when working with Cloudflare Workers.

Cloudflare Workers, a serverless computing platform, face challenges when integrating with financial APIs that require static IP whitelists. These APIs often reject requests from Cloudflare's rotating edge IPs with a 403 Forbidden error. The traditional solution, according to the source, is upgrading to Cloudflare Enterprise at a cost of $2,000 per month, which is not feasible for indie hackers or small engineering teams (Source ID: 1). [1]
An alternative approach involves routing Cloudflare Worker requests through a dedicated $5/month VPS that runs a secure reverse proxy. This setup allows the use of a static IP address for outgoing requests, bypassing the need for an enterprise-level Cloudflare subscription. The VPS acts as a static gateway, attaching the necessary static IP headers before forwarding the request to the target API (Source ID: 1). [1]
The implementation includes a Caddy reverse proxy configuration, a Node.js handler for processing requests, and a systemd service to ensure the proxy runs continuously. This architecture provides a cost-effective solution for developers who need to interact with APIs that enforce static IP whitelists without the financial burden of enterprise Cloudflare plans (Source ID: 1). [1]
The solution described involves routing Cloudflare Workers through a static IP VPS, which is hosted on a budget-friendly $5/month virtual private server. The VPS is configured as a secure reverse proxy and operates under a dedicated static IP address, allowing bypassing of API whitelists that require fixed IP addresses. This setup is particularly useful for developers working with financial APIs, banking ledgers, or payment gateways that enforce strict IP restrictions. The VPS is deployed on a provider that is not explicitly named in the source, but the architecture is designed to be portable across compatible hosting platforms. The proxy architecture is intended for indie hackers and small engineering teams who cannot afford the $2,000+/month Cloudflare Enterprise plan, which is the traditional solution offered by Cloudflare for static IP needs. This method provides a scalable and cost-effective alternative. [1]
Advertisement
The system described in the source is implemented using a combination of Caddy, a lightweight reverse proxy server, and Node.js, which runs an Express server to handle proxy requests. The Caddy configuration file (Caddyfile) is set up to forward traffic to a local Node.js server running on port 3000. The Node.js application includes an endpoint at '/proxy-request' that requires an authorization header with a secret token. This ensures that only authenticated requests from the Cloudflare Worker are processed. The server forwards the request to the target API endpoint, including any headers provided by the Cloudflare Worker. The system is managed by a systemd service file that ensures the Node.js server restarts automatically in case of failure, maintaining uptime and reliability for the proxy service. [1]
The implementation details emphasize security and reliability, including a systemd service file that ensures the proxy server runs continuously and restarts if it crashes. The Node.js server is configured to run in production mode, and the system is designed to be hardened against potential vulnerabilities. The source also mentions a comprehensive, production-ready 16-page technical blueprint available for purchase, which includes scripts, security hardening guides, and zero-trust configurations. The blueprint is intended for developers who want to avoid trial-and-error setups and ensure their systems are secure and efficient. The solution does not require any specific geographic location for the VPS, making it suitable for global deployment as long as the VPS provider supports static IP allocation. The system is designed to be used with any Cloudflare Worker that needs to make outbound requests to APIs requiring static IP whitelists. [1]
Cloudflare Workers, a serverless computing platform, encounter significant challenges when attempting to integrate with financial APIs that require static IP whitelists. Traditional banking and fintech APIs often reject outgoing requests from Cloudflare due to its use of a rotating pool of edge IPs, resulting in 403 Forbidden errors. The conventional solution offered by Cloudflare is to upgrade to its enterprise plan, which costs $2,000+/month, an option that is not feasible for indie hackers or small engineering teams (Dev.to). [1]
An alternative approach involves routing Cloudflare Worker requests through a dedicated $5/month VPS that runs a secure reverse proxy. This architecture allows the Worker to send an authenticated payload to the VPS via HTTPS. The VPS then acts as a static gateway by attaching the whitelisted static IP headers before forwarding the request to the destination API. This setup ensures that the API sees a consistent static IP, thereby bypassing the dynamic IP whitelist issue (Dev.to). [1]
Advertisement
The implementation includes a Caddy reverse proxy configuration, a Node.js handler for processing requests, and a systemd service to ensure the proxy runs continuously. The Caddyfile defines the reverse proxy setup, while the Node.js handler processes the incoming requests and forwards them securely to the target API. The systemd service ensures that the proxy remains active and restarts automatically if it fails (Dev.to). [1]
Sources
Prepared with AI assistance from the cited sources.
The Cali Reporter newsletter
The stories worth your time.
California, the country, and what comes next. Join our free newsletter for reporting that keeps you informed.
More in Technology
- Modern Web Guidance 1.0 and Browser Compatibility
Modern Web Guidance 1.0, announced by Chrome for Developers on November 10, introduces browser compatibility data to assist coding agents in building web features. The initiative emphasizes the importance of fallback…
- Apache mod_http2 Vulnerability Detection with Nmap
A new Nmap scripting module has been developed to detect the Apache mod_http2 vulnerability (CVE-2026-119618), addressing the challenges of identifying affected systems accurately.
- Securing Remote Vendor Access in Industrial Networks
Best practices for managing remote vendor access in operational technology (OT) networks emphasize controlled access points, multifactor authentication, and time-bound sessions to reduce cybersecurity risks.
