> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hostcloud.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Cloudflare with your HostCloud hosting

> Put Cloudflare in front of your HostCloud website without breaking email or SSL.

You can use Cloudflare with HostCloud hosting if you want to. It's optional: your site works fine without it. This guide shows you how to move your DNS to Cloudflare safely, and which settings to check so your website and email keep working.

> [!NOTE]
>
> HostCloud doesn't set up Cloudflare for you. You create and manage the Cloudflare account yourself. Once your domain uses Cloudflare's nameservers, you edit DNS in Cloudflare, not in cPanel.

## Before you start

Make sure your website already works on HostCloud, with your domain pointing to us. See [Point your domain to HostCloud](https://kb.hostcloud.in/dns/point-domain-to-hostcloud.md).

## Move your DNS to Cloudflare

**1. Note your current DNS records**

In cPanel, open **Zone Editor** and note every record for your domain, especially `A`, `CNAME`, `MX` and `TXT` records. The `TXT` records include SPF and DKIM, which your email needs. See [Add or edit DNS records](https://kb.hostcloud.in/dns/add-dns-records.md).

**2. Add your domain to Cloudflare**

Sign up at Cloudflare and add your domain. Cloudflare scans your existing records.

**3. Compare the records**

Check that every record from **Zone Editor** is in Cloudflare, with the same values. Add any that are missing.

**4. Change your nameservers**

Cloudflare gives you two nameservers. In the Client Area, go to **Domains**, open the domain's **⋯** menu → **Manage Nameservers**, choose **Use custom nameservers (enter below)**, enter Cloudflare's nameservers and click **Change Nameservers**. See [Change your nameservers](https://kb.hostcloud.in/domains/change-nameservers.md).

**5. Wait for the change**

Nameserver changes can take up to 24 hours to work everywhere. See [DNS propagation](https://kb.hostcloud.in/dns/dns-propagation.md).

## Settings to check in Cloudflare

| Setting | What to choose | Why |
| - | - | - |
| Website `A` record and `www` | Proxied (orange cloud) or DNS only, your choice | Proxied turns on Cloudflare's caching and protection |
| `mail` record and anything used for email | **DNS only** (grey cloud) | Email doesn't work through Cloudflare's proxy |
| SSL/TLS encryption mode | **Full (strict)** | Your HostCloud hosting already has a valid certificate. **Flexible** can cause redirect loops |

> [!WARNING]
>
> Don't delete your `MX` or SPF and DKIM `TXT` records in Cloudflare. Without them, email to and from your domain stops working or goes to spam.

## Things that work differently

* **DNS changes:** make them in Cloudflare from now on. Changes in cPanel **Zone Editor** no longer take effect. See [Where to edit your DNS](https://kb.hostcloud.in/dns/where-to-edit-dns.md).
* **Free SSL:** AutoSSL on HostCloud may not renew if the proxy stops it from checking your domain. If you see certificate errors, set the website records to **DNS only** for a while, or [open a ticket](https://kb.hostcloud.in/support/open-a-ticket.md). See [Free SSL with AutoSSL](https://kb.hostcloud.in/ssl/free-autossl.md).
* **cPanel and webmail:** if `cpanel.yourdomain.com` or `webmail.yourdomain.com` stop working, set those records to **DNS only**, or use the control panel URL from your hosting welcome email.

## Stop using Cloudflare

Copy your records back into cPanel **Zone Editor** if anything changed. Then go back to **Manage Nameservers** and choose **Use default nameservers**.

Still stuck? [Open a ticket](https://kb.hostcloud.in/support/open-a-ticket.md) with your domain name and what isn't working.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.