Using Cloudflare with your Serverlicious hosting Print

  • cloudflare, dns, ssl, proxy, cdn
  • 0

Cloudflare can sit in front of your website to speed it up and filter malicious traffic. Your website stays hosted with us; Cloudflare takes over your domain's DNS. This guide shows how to set it up without breaking your website or email.

Step 1: Add your domain to Cloudflare

  1. Create a Cloudflare account and click Add a domain.
  2. Cloudflare scans your existing DNS records. Compare them with the records in cPanel under Domains › Zone Editor and add anything that is missing.
  3. At your domain registrar (or in our client area for domains registered with us), replace our nameservers with the two Cloudflare nameservers you are given.

Step 2: Check the DNS records at Cloudflare

TypeNameValueProxy status
Ayourdomain.com and wwwThe server ip address shown in your welcome email, or under general information › shared ip address on the right of the cpanel home pageProxied (orange cloud)
Amail, webmail, cpanel, ftpThe same IP addressDNS only (grey cloud)
MXyourdomain.commail.yourdomain.com, priority 0Not applicable
TXTSPF, DKIM and _dmarcCopy from cPanel › Email › Email DeliverabilityNot applicable
Important: the mail, webmail, cpanel and ftp records must be set to DNS only. Cloudflare's proxy only handles websites; if these records are proxied, email apps, cPanel and FTP will stop connecting.

Step 3: Set the SSL mode

In Cloudflare, open SSL/TLS › Overview and choose Full (strict). Your site already has a valid certificate on our server, so this keeps traffic encrypted end to end. Do not use Flexible: it causes redirect loops on most websites.

Step 4: Keep email working

Because Cloudflare now manages your DNS, the email records we publish automatically are no longer used. Make sure the MX, SPF and DKIM records from step 2 exist at Cloudflare, or your email may bounce or be marked as spam. See Why are my emails going to spam?.

Common problems

  • "Too many redirects": the SSL mode is set to Flexible. Change it to Full (strict).
  • Email app cannot connect: the mail record is proxied. Set it to DNS only.
  • Your office is blocked by our firewall: because Cloudflare passes on your real IP address, blocks still apply to you. See My IP address has been blocked.
  • Changes do not appear: purge the Cloudflare cache under Caching › Configuration.

Need help?

If you have any difficulty, please open a support ticket and our team will be glad to assist.


Was this answer helpful?

« Back