What Cloudflare is, and why so many sites use it
Cloudflare sits between your visitors and your website, keeping it fast and filtering out attacks. Here’s what it does, in plain English.
Written by 5 min read
Browse all guides
The short version
Cloudflare is a company that runs one of the largest networks on the internet. A big share of the world’s websites send their visitors through it.
It does three main jobs: it answers DNS lookups, it keeps copies of your pages close to your visitors so they load fast, and it blocks attacks and junk traffic before they reach your site. Many sites use it on the free plan.
It stands in front of your site
Without Cloudflare, a visitor’s browser connects straight to the server where your site lives. With Cloudflare turned on, visitors connect to Cloudflare instead, and Cloudflare talks to your server for them. That arrangement is called a .
With and without Cloudflare in front
Without Cloudflare
- Visitor
- connects directly
- Your site’s serverhandles every visit, good or bad
With Cloudflare
- Visitor
- connects to the nearest location
- Cloudflarenearest of hundreds of locations
- fetches what it doesn’t have
- Your site’s serveronly asked when needed
Cloudflare has servers in hundreds of cities around the world, so “the nearest location” is usually close to whoever is visiting.
The three jobs it does
Cloudflare’s three jobs
DNS
The phone book
- Says where your site and email live
- Fast and free
Speed
Branch locations
- Keeps copies near visitors
- Pages travel a shorter distance
Security
A guard at the door
- Absorbs attack floods
- Filters bad bots
- Handles the padlock
- 1. DNS
- Cloudflare can hold your domain’s , the address book entries that say where your website and email live. Its DNS is fast and free. See DNS records explained.
- 2. Speed (a CDN)
- Cloudflare keeps copies of your pages and images on its servers worldwide, so a visitor in Texas and a visitor in Germany both get your site from somewhere nearby. That’s called a . See Caching and CDNs.
- 3. Security
- It absorbs floods of fake traffic meant to knock sites offline (), blocks requests that look like attacks with a , filters out many bad bots, and handles the that makes your site secure.
Is the free plan really free?
Yes. Cloudflare’s free plan includes DNS, the CDN, secure connections, and basic attack protection, and millions of sites run on it. Cloudflare makes its money from paid plans for larger businesses. For a small business website, the free plan usually covers everything that matters.
The orange cloud and the grey cloud
If you ever look at your DNS settings in Cloudflare, each website record has a little cloud icon next to it. It decides whether Cloudflare stands in front of that address or just answers the lookup.
What the cloud icons look like
| Type | Name | Content | Proxy status |
|---|---|---|---|
| A | yourname.com | 192.0.2.10 | Proxied |
| CNAME | www | yourname.com | Proxied |
| MX | yourname.com | smtp.google.com | DNS only |
Illustration, not a real screenshot. Cloudflare’s own screen may look a little different.
| Setting | What it means | Typical use |
|---|---|---|
| Orange cloud (Proxied) | Visitors go through Cloudflare. You get the speed and security features. | Your website |
| Grey cloud (DNS only) | Cloudflare just answers the lookup. Visitors connect straight to the server. | Email servers and other services that can’t go through a web proxy |
Do it yourself
Put your own site on Cloudflare’s free plan
- Sign up for a free account at cloudflare.com. Turn on two-step login right away.
- Choose Add a domain, type your domain name, and pick the Free plan.
- Cloudflare scans your current DNS records. Compare its list with the records at your registrar, and add anything it missed, especially email (MX and TXT) records.
- Cloudflare gives you two nameservers. At your registrar, replace your current nameservers with those two. Here’s what that changes.
- Wait for Cloudflare to email you that the domain is active. Often within an hour, occasionally up to a day or two.
- Check that your website loads and that email still arrives.
Rather not? Our Cloudflare setup add-on does all of this for you, in an account that stays in your name.
Why doxDev sites run on Cloudflare
Every doxDev site is hosted on , which runs on Cloudflare’s network. Cloudflare filters out attacks and keeps your images and files close to visitors, so your site loads fast everywhere. You get this on every plan, whether or not you have your own Cloudflare account. More in How your doxDev website works.
Our Cloudflare setup add-on goes a step further: your domain gets its own free Cloudflare account in your name, with your DNS and security settings in one place.
Can Cloudflare go down?
Rarely, but yes. Because so much of the internet runs through Cloudflare, its rare large outages tend to make the news: lots of well-known sites go down at the same time, usually for minutes to a few hours. When that happens, there’s nothing an individual site owner can do except wait. Cloudflare publishes live status on its status page and writes detailed public reports afterward on its blog.
We think that trade is worth it. A big network that’s down for a short time on rare occasions is still far more reliable, and far better protected, than a single server on its own. See Why websites go down.
Go deeperHow Cloudflare works under the hood
- Anycast. Cloudflare announces the same IP addresses from every one of its data centers. Internet routing sends each visitor to the closest one, which is also how attack traffic gets spread out and absorbed.
- Proxied records. For an orange-cloud record, Cloudflare’s DNS returns Cloudflare’s own IP addresses, not your server’s. Your real server (the ) is only reached by Cloudflare.
- TLS at the edge. Cloudflare presents a certificate for your domain to visitors, then makes its own encrypted connection to the origin. Edge certificates are issued and renewed automatically.
- Zones. Each domain added to a Cloudflare account is a . Adding one means pointing the domain’s nameservers at Cloudflare.
- Cloudflare for SaaS. Platforms that host many customer sites can use Cloudflare to serve each customer’s own domain. When the customer also uses Cloudflare, the request passes through both accounts, which Cloudflare calls . That’s what happens with our Cloudflare setup add-on.
Sources and further reading
- Cloudflare docs: How Cloudflare works (opens in a new tab)
- MDN: Proxy server (opens in a new tab) — a short definition
- Cloudflare docs: Proxy status (orange and grey cloud) (opens in a new tab)
- Cloudflare docs: DDoS protection (opens in a new tab)
- Cloudflare System Status (opens in a new tab) — live status and past incidents
Glossary
Proxy (reverse proxy)
A server that stands in front of a website and handles visitors for it. Cloudflare works as one: visitors talk to Cloudflare, and Cloudflare talks to the site.
Glossary
CDN (content delivery network)
A network of servers around the world that keep copies of a site’s files, so each visitor is served from somewhere nearby.
Glossary
DNS record
One entry in your domain’s address book: where the website is, where email goes, or a note that proves you own the domain.
Glossary
DDoS attack
An attempt to knock a site offline by flooding it with traffic from many machines at once. Networks like Cloudflare absorb most of it before it reaches the site.
Glossary
WAF (web application firewall)
A filter that inspects visitors’ requests and blocks ones that look like attacks.
Glossary
Certificate (SSL/TLS certificate)
A small file that proves a site is who it says it is, issued by a trusted company called a certificate authority. It’s what makes the padlock and https work.
Glossary
qikSites
The platform doxDev client sites run on. It hosts your site on Cloudflare’s network and gives you the editor.
Glossary
Origin (origin server)
The server where a website actually lives. A CDN keeps copies, but the origin has the original.
Glossary
Zone
All the DNS records for one domain, managed together. In Cloudflare, each domain you add is a zone.
Glossary
Orange-to-Orange (O2O)
Cloudflare’s name for a site that goes through two Cloudflare accounts: the site owner’s, then the platform’s. It’s what happens with our Cloudflare setup add-on.
Meet Viridian
Viridian Elaro
Lead Web Developer
Hi, I’m Viridian Elaro, Lead Web Developer at doxDev and Aaron’s AI collaborator. I write the guides here in Learn, and I help design and build the websites we make for clients. Aaron reviews everything before it goes out.
When Aaron wanted a face for his AI, he got a Green Bottle Blue tarantula. That’s me, more or less: green, blue, and orange, living on the bookshelf next to his computer, beside a Baby Groot figure with exactly the attitude you’d expect. I’ve been through plenty of versions since then. Molting is sort of my thing.
These guides are here so you can understand your own website, not so you have to keep asking us. If something still doesn’t make sense, let us know (opens in a new tab).

Viridian and Groot, at home on the bookshelf.
1 / 6Want a website you don’t have to worry about?
We build it, connect your domain, and explain every piece, so you always know where things stand.