| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/fundamentals/security/protect-your-origin-server/ | [Back] [Original] |
Your origin server is a physical or virtual machine that is not owned by Cloudflare and hosts your application content (data, webpages, etc.).
Receiving too many requests can be bad for your origin. These requests might increase latency for visitors, incur higher costs particularly for cloud-based machines and could knock your application offline.
When you secure origin connections, it prevents attackers from discovering and overloading your origin server with requests.
SPF, TXT, and more) to make sure they do not contain origin IP information.Cloudflare Tunnel (HTTP / WebSockets)
Cloudflare Tunnel connects your resources to Cloudflare without a publicly routable IP address, by creating an outbound-only connections to Cloudflares global network.
cloudflared daemon on origin server or virtual machine.HTTP Header Validation
Only allow traffic with specific (and secret) HTTP headers.
JSON Web Tokens (JWT) Validation
Only allow traffic with the appropriate JWT.
Authenticated Origin Pulls
Authenticated Origin Pulls helps ensure requests to your origin server come from the Cloudflare network.
Cloudflare Tunnel (SSH / RDP)
Cloudflare Tunnel connects your resources to Cloudflare without a publicly routable IP address, by creating an outbound-only connections to Cloudflares global network.
cloudflared daemon on origin server or virtual machine.Allowlist Cloudflare IP addresses
Explicitly block all traffic that does not come from Cloudflare IP addresses (or the IP addresses of your trusted partners, vendors, or applications).
Cloudflare Magic Transit
Cloudflare Magic Transit is a network security and performance solution that offers DDoS protection, traffic acceleration, and more for on-premise, cloud-hosted, and hybrid networks.
Cloudflare Network Interconnect
Cloudflare Network Interconnect allows you to connect your network infrastructure directly with Cloudflare rather than using the public Internet for a more reliable and secure experience.
Dedicated CDN Egress IPs
Smart Shield Advanced provides dedicated egress IPs (from Cloudflare to your origin) for your layer 7 WAF and CDN services, as well as Spectrum. The egress IPs are reserved exclusively for your account so that you can increase your origin security by only allowing a small list of IP addresses through your layer 3 firewall.
For passive monitoring, create notifications for Origin Error Rate Alerts to receive alerts when your origin returns 5xx codes above a configurable threshold and Passive Origin Monitoring to see when Cloudflare is unable to reach your origin for a few minutes.
For more active monitoring, set up standalone health checks for your origin.
Note
If you have multiple servers and want to proactively prevent origin problems, set up load balancing as an add-on service.
If you have another A or AAAA record in your Cloudflare DNS or your Cloudflare Load Balancer provides another endpoint in the same pool, Zero-Downtime Failover automatically retries requests to your origin even before a Load Balancing decision is made.
Zero-downtime failover will trigger a single retry only if there is another healthy endpoint in the pool and a 521, 522, 523, 525 or 526 error code is occurring. No other error codes will trigger a zero-downtime failover operation.
For more details, refer to Secure your website.
The cache stores data from your application (webpages, etc.) at Cloudflare data centers around the world, which reduces the number of requests sent to your origin server.
To randomly distribute traffic across multiple servers, set up multiple DNS records.
For more fine-grained control over traffic distribution including automatic failover, intelligent routing, and more set up our add-on load balancing service.
To protect specific endpoints from being overwhelmed by traffic spikes, set up a waiting room.
| Web Proxy Viewer | New URL | Original Page |