Cloudflare sits between your visitors and your website server. It answers DNS lookups, serves cached copies of your pages and files from data centres around the world, provides free SSL certificates and filters out a lot of malicious traffic. For many small business websites, the free plan is one of the best-value upgrades available.

We moved our own site behind Cloudflare in 2026 and saw cached pages load in tens of milliseconds worldwide. Here's how to set it up safely.

What Cloudflare does

FeatureBenefit
DNSFast, reliable domain lookups
CDN (content delivery network)Files and cached pages served from near the visitor
SSL/TLSHTTPS for visitors, with certificates managed for you
DDoS protectionAbsorbs floods of traffic that would knock a small server over
Web application firewall (WAF) rulesBlock common attacks and bad bots
Bot managementControl crawlers, including AI crawlers
AnalyticsTraffic and threat overview

Setup checklist

1. Add your site and check DNS records

When you add your domain, Cloudflare imports existing DNS records. Check every one carefully before switching nameservers: website, email (MX), SPF, DKIM and DMARC records, verification records and subdomains. Missing email records are the most common setup mistake.

2. Decide what to proxy

  • Proxied (orange cloud): web traffic for your main site, so it gets caching and protection.
  • DNS only (grey cloud): mail servers and services that don't work through the proxy.

3. Set SSL/TLS to Full (strict)

Use Full (strict), which encrypts traffic all the way to your server and checks your server's certificate. "Flexible" mode leaves the server connection unencrypted and can cause redirect loops. Make sure your server has a valid certificate (Let's Encrypt is free).

4. Turn on sensible defaults

  • Always Use HTTPS.
  • Automatic HTTPS Rewrites.
  • Minimum TLS version 1.2.
  • HTTP/3 and Early Hints, if available.
  • Brotli compression (often on by default).

5. Switch nameservers

Change your domain's nameservers at your registrar to the ones Cloudflare gives you. It can take a few hours to update worldwide.

Caching without breaking things

By default, Cloudflare caches static files (images, CSS, JavaScript) but not HTML pages. Caching HTML makes pages much faster, but needs care.

ContentCache?
Images, CSS, JS, fontsYes, long cache times
Public marketing pages, blog articlesYes, with short edge times and revalidation
Logged-in areas, account pages, adminNever
Basket and checkoutNever
API routes and formsNever

Use cache rules to cache HTML only on public paths, bypass caching for admin, account, checkout and API paths, and respect your server's cache-control headers. A short edge cache (for example a couple of minutes) with stale-while-revalidate keeps pages fresh while still being fast.

After any change, test while logged out and logged in to make sure private content never appears in cache.

Security settings worth enabling

  • Managed WAF rules where available on your plan.
  • Rate limiting on login and contact forms to stop brute force and spam.
  • Bot Fight Mode for basic bot filtering (test that it doesn't block tools you rely on).
  • AI crawler controls: decide whether to allow AI search crawlers. Blocking them can reduce your visibility in AI answers. Check what your robots.txt allows with our AI crawler check, and read bot traffic now outnumbers humans.
  • Security headers through Transform Rules. See HTTP security headers explained.

Things to keep off

  • Rocket Loader can break JavaScript-heavy sites and modern frameworks. Test carefully or leave it off.
  • Aggressive HTML minification on modern frameworks rarely helps.
  • "Cache everything" without exceptions, which can serve private pages to strangers.

Common problems and fixes

ProblemLikely causeFix
Redirect loopSSL set to Flexible with HTTPS redirect on serverUse Full (strict)
Emails stopped workingMX or mail records missing or proxiedRestore records, set to DNS only
Old content showingCached HTMLPurge cache; shorten edge TTL
Logged-in page shown to othersCaching dynamic pagesBypass cache for those paths; check cookies
Forms or payments failingWAF or bot rules blocking requestsCheck security events, add exceptions
Timeouts on long requestsFree plan cuts requests after 100 secondsMake long tasks run in the background

Monitoring

Cloudflare's analytics show cached versus uncached requests, threats blocked and traffic by country. Pair it with uptime monitoring so you know immediately if the site goes down. Read why websites go down.

The short version

Cloudflare's free plan gives small business websites faster DNS, a global CDN, free SSL and DDoS protection. Check DNS records carefully (especially email), use Full (strict) SSL, cache static files and public pages while bypassing logged-in, checkout and API paths, enable sensible security rules and test after every change.

Want it set up and monitored for you? Our maintenance and support team and web development team configure Cloudflare for client sites. For hosting choices, read how to choose web hosting.