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
- Create a Cloudflare account and click Add a domain.
- Cloudflare scans your existing DNS records. Compare them with the records in cPanel under Domains › Zone Editor and add anything that is missing.
- 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
| Type | Name | Value | Proxy status |
|---|---|---|---|
| A | yourdomain.com and www | The server ip address shown in your welcome email, or under general information › shared ip address on the right of the cpanel home page | Proxied (orange cloud) |
| A | mail, webmail, cpanel, ftp | The same IP address | DNS only (grey cloud) |
| MX | yourdomain.com | mail.yourdomain.com, priority 0 | Not applicable |
| TXT | SPF, DKIM and _dmarc | Copy from cPanel › Email › Email Deliverability | Not applicable |
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
mailrecord 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.