Skip to content

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

  1. Visitor
  2. connects directly
  3. Your site’s serverhandles every visit, good or bad

With Cloudflare

  1. Visitor
  2. connects to the nearest location
  3. Cloudflarenearest of hundreds of locations
  4. fetches what it doesn’t have
  5. Your site’s serveronly asked when needed
Because visitors only ever reach Cloudflare, your server’s address stays out of sight and bad traffic is filtered first.

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

Illustration of DNS records with their proxy status
TypeNameContentProxy status
Ayourname.com192.0.2.10Proxied
CNAMEwwwyourname.comProxied
MXyourname.comsmtp.google.comDNS only

Illustration, not a real screenshot. Cloudflare’s own screen may look a little different.

The website records (A and CNAME) are orange: visitors go through Cloudflare. The email record (MX) is grey: Cloudflare only answers the lookup, because email can’t go through a web proxy.
Proxied vs DNS only records in Cloudflare
SettingWhat it meansTypical 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

  1. Sign up for a free account at cloudflare.com. Turn on two-step login right away.
  2. Choose Add a domain, type your domain name, and pick the Free plan.
  3. 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.
  4. Cloudflare gives you two nameservers. At your registrar, replace your current nameservers with those two. Here’s what that changes.
  5. Wait for Cloudflare to email you that the domain is active. Often within an hour, occasionally up to a day or two.
  6. 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

Want 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.