Cloudflare is a company that runs one of the largest networks on the internet, and a great many websites sit behind it. When a site uses Cloudflare, visitors do not connect straight to the website’s own server. They connect to the nearest Cloudflare location, which answers on the site’s behalf: it serves stored copies of pages and files where it can, adds the security certificate, blocks traffic that looks like an attack, and passes the rest through to the real server. For a business, that means a faster site for distant visitors, less strain on the hosting and a layer of protection most small sites would never build for themselves.
In short
- A network that sits between your website and its visitors.
- Handles DNS, caching, security certificates and attack protection.
- Works in front of your existing hosting rather than replacing it.
- Has a free plan, with paid plans for more control.
How it sits in front of a website
Setting up Cloudflare usually starts with the domain. The business changes the domain’s nameservers, at the registrar, to the pair Cloudflare provides. From then on Cloudflare answers every lookup for the domain, and each DNS record can be set to pass through Cloudflare or not.
- Proxied, shown as an orange cloud. Visitors reach Cloudflare, and Cloudflare reaches the server.
- DNS only, shown as a grey cloud. Cloudflare answers the lookup and visitors connect directly.
The website stays on its existing hosting. Cloudflare is the layer in front, which is why moving to it does not require moving the site. The switch usually takes effect within a few hours, and the domain is still renewed at the registrar unless it is transferred as well.
What it does for a business site
The free plan alone covers several jobs that small sites often leave undone.
- DNS. Fast, reliable answers for the domain, with records edited in one dashboard.
- Caching. Copies of images, stylesheets and other files stored in locations near visitors. Our page on caching explains how that works.
- A security certificate. The padlock, issued and renewed automatically. Our page on the SSL certificate covers what it protects.
- Attack protection. Floods of fake traffic absorbed by Cloudflare’s network rather than the hosting.
- Firewall rules. Blocking countries, addresses or patterns that should never reach the site.
Why distance matters here
A visitor in Davao opening a site hosted in another continent waits for every request to travel there and back. When Cloudflare holds a copy of the files closer to the visitor, much of that waiting disappears. The pages themselves may still be built on the original server, but the images, scripts and styles that make up most of the weight arrive from nearby.
That only helps if the site is set up to be cached. A site that marks every file as never to be stored gains little, however large the network in front of it.
The products with the same name
Cloudflare sells more than the service in front of websites, and the names get mixed up.
- 1.1.1.1 is a free DNS resolver people set on their own devices.
- WARP is an app that routes a device’s traffic through Cloudflare.
- Cloudflare Registrar sells and renews domains.
- Pages and Workers run websites and code on Cloudflare’s own network.
A business can use any of these without the others. When somebody says a site is on Cloudflare, they usually mean the proxy in front of it.
When something goes wrong
Cloudflare shows its own error pages, and they point at different causes.
- 521 or 522. Cloudflare could not reach the server, which is down, overloaded or blocking it.
- 525 or 526. The secure connection between Cloudflare and the server failed, usually a certificate problem at the host.
- A challenge page. Cloudflare suspected the visitor was automated and asked for a check.
Most of these are hosting faults that Cloudflare simply reports. Occasionally Cloudflare itself has an outage, and then many unrelated sites fail at the same moment.
Settings worth knowing
A few settings decide whether Cloudflare helps or gets in the way.
- Encryption mode. Full, with a valid certificate on the server, rather than the weaker Flexible mode.
- Cache rules. Which paths may be stored and for how long, with admin and checkout pages left out.
- Purge cache. Clearing stored copies after an important change, so visitors see the new version.
- Security level. Strict enough to stop attacks, not so strict that real customers face challenges.
Who should hold the account
The Cloudflare account controls the domain’s DNS, which means it controls where the website and the email point. It belongs in the business’s own name, with at least two people able to sign in. A developer or agency can be invited as a member rather than holding the only login, and the account should be listed alongside the registrar and the hosting as one of the keys to the business’s online presence.
Where setups go wrong
- Nameservers changed without copying every record, so email or a subdomain stops working.
- Flexible encryption, which leaves the connection to the server unencrypted.
- The mail server’s address proxied, which breaks mail delivery.
- Checkout or login pages cached, showing one visitor’s page to another.
- A forgotten account, opened by a former developer, holding the domain’s DNS.
Words you will hear
- Nameservers. The servers that answer for a domain, switched to Cloudflare at setup.
- Proxy. Traffic passing through Cloudflare on its way to the server.
- Edge. The Cloudflare locations nearest to visitors.
- Purge. Clearing stored copies from the cache.
- Origin. The website’s own server behind Cloudflare.
- DDoS. A flood of traffic meant to knock a site offline.
Find out who holds the Cloudflare login for your domain, if the site uses it at all. If the answer is a person who no longer works with you, that account is the first thing to recover.
Questions we get
More about cloudflare
What is Cloudflare?
Is Cloudflare a web host?
Is Cloudflare free?
What does an orange cloud mean in Cloudflare?
What do Cloudflare error pages such as 521 or 522 mean?
What is 1.1.1.1?
Does Cloudflare make a website faster?
Do it yourself
Guides on the same topic
Free step by step guides for owners doing the work themselves. No sign up and no email required.
Related terms
Caching
Caching stores a ready-made copy of a page or file so it loads without being built again. It makes a site fast, and it hides your newest edit.
DNS records
DNS records are the settings telling the internet where to find your website and your email, which is why one wrong line can take both offline at once.
SSL certificate
An SSL certificate is what puts the https on your address. It encrypts what visitors send you and proves the site belongs to whoever it claims to.