Cloudflare Proxy Fundamentals: Orange Cloud Explained
Learn how the Cloudflare proxy (the "orange cloud") works. Master traffic flow, DNS verification, and the security benefits of routing through the edge.
Previously in this course, we covered Understanding the DNS Infrastructure: A Developer's Guide, where you learned how to point your domain’s name servers to Cloudflare. Now that your traffic is reaching Cloudflare's network, we need to understand how to actually process that traffic.
When you manage your DNS records in the Cloudflare dashboard, you’ll notice a small cloud icon next to each record. Flipping this switch is the single most important action you can take to move from using Cloudflare as a simple DNS provider to using it as a full-featured CDN and security platform.
The "Orange Cloud" and Traffic Flow
In the Cloudflare dashboard, the cloud icon serves as a toggle for the proxy service.
- DNS-Only (Grey Cloud): When the cloud is grey, Cloudflare acts strictly as a DNS provider. Your DNS records resolve directly to your origin server’s IP address. Traffic bypasses Cloudflare’s infrastructure entirely; there is no caching, no WAF, and no DDoS mitigation.
- Proxied (Orange Cloud): When the cloud is orange, Cloudflare acts as a reverse proxy. Instead of returning your origin server's IP address to the client, Cloudflare returns the IP address of one of its own edge servers.
When a visitor requests your site, the request hits the nearest Cloudflare data center first. Cloudflare inspects the request, checks the cache, applies security rules, and only then—if necessary—forwards the request to your origin server.
Why Proxying Matters
By inserting itself into the request path, Cloudflare gains the ability to provide:
- Security: Filtering malicious traffic before it ever touches your server.
- Performance: Serving static assets from the cache at the edge.
- Reliability: Shielding your origin IP, making it harder for attackers to target your server directly.
Verifying Proxy Status with dig
As a developer, you should never trust a UI alone. You can verify whether a domain is proxied by checking the resolved IP address using command-line tools like dig or nslookup.
When a record is DNS-Only (Grey), the IP returned will be your actual origin server IP. When it is Proxied (Orange), you will see Cloudflare-owned IP addresses.
Worked Example
Let’s verify the status of example.com. Open your terminal and run:
Bashdig example.com +short
If it is proxied (Orange): You will see IPs belonging to Cloudflare’s network (typically starting with 104.x.x.x or 172.x.x.x).
If it is DNS-only (Grey): You will see your specific hosting provider's IP address (e.g., a DigitalOcean or AWS public IP).
Hands-on Exercise
- Log in to your Cloudflare dashboard and navigate to DNS > Records.
- Find an A record for a subdomain (like
test.yourdomain.com). - Ensure the cloud icon is set to DNS-only (Grey).
- Run
dig test.yourdomain.com +shortin your terminal. Note the IP. - Click the cloud icon to toggle it to Proxied (Orange).
- Run the
digcommand again. You should see the IP change to a Cloudflare edge IP.
Common Pitfalls
- Forgetting to update the Origin: If you move your server, you must update the IP in the Cloudflare dashboard. If the proxy is on, the end user won't notice the change immediately, but your origin might stop receiving traffic if the configuration is stale.
- SSL/TLS Mismatches: When you proxy traffic, the connection between the user and Cloudflare is encrypted. If your origin server doesn't have a valid certificate, you might see "526 Invalid SSL certificate" errors. We will address this in the next lesson.
- Caching Dynamic Content: Proxied traffic is cached by default for certain file types. If you are developing an API, you might find that your changes don't appear immediately. You'll learn how to manage this in our upcoming lessons on Cache Rules.
FAQ
Q: Can I proxy my mail server (MX records)? A: No. Cloudflare’s proxy only supports HTTP/HTTPS traffic. Mail traffic (SMTP/IMAP) must remain in DNS-only mode.
Q: Does the Orange Cloud hide my origin IP? A: Yes, it masks your origin IP from the public. However, if your server was previously indexed by search engines or bots with the direct IP, that information might already exist in historical databases.
Q: What happens if Cloudflare goes down? A: If the proxy is enabled and Cloudflare experiences an outage, your site will go down. This is why many enterprise users maintain secondary DNS providers, though Cloudflare’s uptime is historically excellent.
Recap
By flipping that orange switch, you move from simple DNS resolution to a powerful edge-delivery model. You've now learned that the "Orange Cloud" is your gateway to the global Cloudflare network, providing the foundation for security and speed.
Up next: Configuring SSL/TLS Settings — where we ensure the connection between Cloudflare and your origin server is encrypted and secure.
Work with me

Next.js Full-Stack Web App Development
A fast, SEO-ready full-stack web app built with Next.js 16 — from idea to deployed product, by an engineer who ships to production.

Custom Email & File Storage System on Cloudflare (Google Workspace Alternative)
Your own private email + file storage suite on your domain — unlimited mailboxes, no per-seat fees. A self-owned Google Workspace alternative for a flat ~$5/month.
