Applies to: Ucartz shared hosting, VPS and dedicated servers with a free or paid Cloudflare account

Yes, you can use Cloudflare with any Ucartz hosting plan, VPS or dedicated server. You keep the Cloudflare account in your own name, point your domain's nameservers to Cloudflare, and Cloudflare sends website visitors on to your Ucartz server. This guide covers the setup, the SSL setting to use and the few things that do not go through Cloudflare.

What Cloudflare does and does not cover

  • Covered: website traffic on the normal web ports. According to Cloudflare, it proxies HTTP on ports such as 80 and 8080 and HTTPS on ports such as 443 and 8443.
  • Not covered: email, SSH, FTP, database ports, SHOUTcast or Icecast streams and game server ports. These records must stay "DNS only" (grey cloud), or they stop working. Cloudflare sells protection for other ports as its Spectrum product.
  • The free plan already includes a shared SSL certificate and Cloudflare's DDoS protection for proxied website traffic, so most sites do not need a paid plan.

Step 1: Create your Cloudflare account and add the domain

Sign up at Cloudflare with your own email address, then add your domain. Cloudflare's dashboard calls this Onboard a domain. Cloudflare scans your current DNS records, but it may not find all of them, so compare its list with the records you have today (in cPanel: Zone Editor; for a Ucartz-managed domain: the client area DNS page).

Check these records in particular:

  • A or AAAA records for your website (the domain and www): proxied, orange cloud.
  • MX records and the mail hostname (for example mail.example.com): DNS only, grey cloud.
  • SPF, DKIM and DMARC TXT records: copy them exactly, or your email may go to spam.
  • Hostnames for cPanel, webmail, FTP, SSH or streams: DNS only, grey cloud.

Cloudflare's guide: Full setup.

Step 2: Change the nameservers at your registrar

Cloudflare shows two nameservers on the domain's Overview page. Log in to your domain registrar, turn off DNSSEC if it is on, and replace the current nameservers with Cloudflare's. If Ucartz is your registrar, change them in the client area: go to Domains > My Domains, open the domain, then choose Nameservers.

According to Cloudflare, the change can take up to 24 hours. Cloudflare emails you when the domain is active.

Step 3: Set SSL to Full (strict)

In Cloudflare, open SSL/TLS and choose Full (strict). This keeps the connection encrypted from the visitor to your server, not only to Cloudflare. It needs a valid certificate on your server:

  • cPanel shared and reseller hosting: AutoSSL already installs one for your domain.
  • VPS and dedicated servers: install a Let's Encrypt certificate or a Cloudflare Origin CA certificate before you switch.

Do not use Flexible: it sends traffic to your server without encryption and often causes redirect loops on WordPress sites. Cloudflare's guide: Full (strict).

Step 4: Make sure your server logs real visitor IPs

Behind Cloudflare, your server sees Cloudflare's addresses unless it is set to read the visitor's real IP from Cloudflare's headers. Without it, logs, firewalls and login protection see every visitor as the same few Cloudflare IPs.

  • cPanel shared and reseller hosting: already set up on our servers.
  • Other shared hosting, VPS and dedicated servers: set it up on the web server (Apache mod_remoteip or nginx real_ip) as described in Cloudflare's guide: Restoring original visitor IPs. Open a ticket if you would like our team to check it.

Step 5: Give our team access (optional)

If you want us to make Cloudflare changes for you, invite our support address as a member of your Cloudflare account instead of sharing your password. In Cloudflare, open Members, select Invite members, add support@ucartz.com, and choose the Domain Administrator role for that domain. You can remove the member at any time.

Cloudflare's guide: Manage members.

Common problems

  • Email stopped working: the mail hostname or MX target is proxied. Set it to DNS only.
  • Too many redirects: SSL is set to Flexible. Switch to Full (strict).
  • Error 526: the certificate on your server is missing, expired or for another name. Renew or install it, then try again.
  • Cannot reach cPanel, SSH or a stream: that hostname is proxied. Use a DNS-only hostname, or the server's IP address.

Need help with the setup?

Small changes, such as adding a DNS record, are part of our free basic support. If you would rather we move the domain, set up SSL and caching and check your server for you, open a ticket or see Hire an Expert.

Related services

Web hosting

shared hosting on Virtualmin with NVMe storage, free SSL and email.

SSL certificates

DV, OV and wildcard, with free installation help.

Reseller hosting

white-label cPanel hosting for your own clients.

Was this answer helpful?

Still stuck? Open a ticket