Guide
Put Cloudflare in front
Add the zone, switch the name servers, proxy the web records, set strict TLS and restrict the origin to Cloudflare ranges.
1. Add the zone
In Cloudflare choose Add a site, enter the domain and take the free plan. The import pulls the existing records and issues two name servers.
2. Change the name servers at the registrar
Replace the registrar's pair with the two issued by Cloudflare. The zone goes active when the registry publishes the change, usually within an hour.
3. Proxy the web records
Click the orange cloud on the A record for the site. DNS-only records publish the origin address, proxied ones answer with Cloudflare addresses.
4. Set TLS to Full (strict)
Install a certificate on the origin first, then set the mode. Flexible encrypts only the browser leg and leaves the origin in plaintext.
5. Restrict the origin to Cloudflare ranges
ufw allow from 173.245.48.0/20 to any port 443, plus the other published ranges. Without this the proxied address is cosmetic.
6. Confirm the request reaches the edge
curl -sI https://example.com | grep -i cf-ray. A cf-ray header means the request went through Cloudflare rather than straight to the instance.
FAQ
Questions we get on this page
Does Cloudflare see my traffic?+
Can I keep mail records unproxied?+
Ready when you are
Tell us what you need. A human answers.
Pilot stage: one facility in Reykjavík, plans confirmed by hand, payment in crypto. Write to the desk and you get a real person, not a queue.