Welcome! New to Spiderz? Get 40% off your first purchase.

Use Cloudflare with your Spiderz-hosted website

Tutorial 4 min ·

Put Cloudflare in front of your website while Spiderz keeps hosting it. Cloudflare takes over your domain's DNS and, for the records you choose, sits between visitors and your site. Your files and mailboxes stay where they are.

1 Add your domain to Cloudflare

In Cloudflare, add your domain and choose a plan. The Free plan is enough for most sites. Cloudflare's setup steps

Cloudflare scans your current DNS and imports what it finds.

2 Check every record

The scan often misses records. Compare Cloudflare's list with your copy, and add anything missing, especially:

  • the A record for @ and the record for www, pointing to your Spiderz IP address;
  • every MX record;
  • TXT records for SPF, DMARC and verification;
  • DKIM records, often named like default._domainkey;
  • names your email uses, such as mail or webmail;
  • any other subdomains you use.

3 Choose which records to proxy

Each record has a proxy setting. Proxied (orange cloud) sends visitors through Cloudflare. DNS only (grey cloud) gives them your server's address directly. Cloudflare's proxy status

Record Setting
@ and www, your website Proxied
mail, webmail, imap, smtp DNS only
cpanel, ftp and other non-website names DNS only
MX and TXT No setting: they're never proxied

Mail doesn't pass through Cloudflare's proxy, so proxying a mail name breaks email.

4 Turn off DNSSEC at your current provider

If your domain uses DNSSEC, turn it off at your registrar before you switch, and wait for it to clear. You can turn it on in Cloudflare once the domain is active. Leaving the old DNSSEC on can make your domain unreachable. Cloudflare's DNSSEC help

If you've never set up DNSSEC, you can skip this.

5 Change the nameservers

Cloudflare shows two nameservers for your domain, such as luke.ns.cloudflare.com. At your registrar, replace the current nameservers with those two exactly. Use the ones Cloudflare gives you for this domain, not ones from another site.

Cloudflare emails you when the domain is active, usually within a few hours. Until then, some visitors still use the old DNS, so don't change records in both places.

6 Set HTTPS to Full (strict)

In Cloudflare, go to SSL/TLS and set the mode to Full (strict). Cloudflare then connects to Spiderz over HTTPS and checks your certificate. Your Spiderz certificate meets this requirement. Full (strict) mode

Avoid Flexible. It connects to your hosting without HTTPS, and if your site redirects to HTTPS, visitors get "too many redirects". Cloudflare explains redirect loops

7 Keep redirects in one place

Decide where your HTTP-to-HTTPS and www redirects live: in Cloudflare, or in your site. If both do it differently, visitors bounce between them. Should your website use www or the bare domain? helps you choose an address.

8 Be careful with caching

Cloudflare caches images, styles and scripts by default, and not your pages. Leave that as it is unless you know your site well. A rule that caches every page could show one customer's account or cart to another. Cloudflare's default caching

If you update your site and still see the old version, select Caching → Configuration → Purge Everything.

9 Test everything

  • Open yourdomain.com and www.yourdomain.com, both over HTTPS, and an inner page.
  • Send the contact form.
  • Send email to your business address from outside, and reply.
  • If your site has sign-in, test it signed in and signed out.

A lookup now shows Cloudflare's addresses, not your Spiderz IP. That's expected.

If something breaks

  • Error 521 or 522. Cloudflare can't reach your hosting. Check the A records hold your Spiderz IP.
  • Error 525 or 526. Your certificate isn't valid for Cloudflare. Check SSL/TLS Status in cPanel.
  • Too many redirects. Change the SSL/TLS mode to Full (strict), then check step 7.
  • Email stopped. Check the MX records exist and mail names are DNS only.
  • The domain doesn't load at all. Check DNSSEC at your registrar.

Keep a note of which records are proxied, and where your redirects live, for next time.

Did this solve it?

Reference docs