How to add your website to Cloudflare (free plan)
Cloudflare sits in front of your website and adds a free CDN, caching, DDoS protection and a firewall. This guide shows how to add your website to Cloudflare on the free plan step by step, without breaking your website or your email.
Before you start
- Access to your domain registrar (for domains registered with EgWeb, this is your client area).
- Access to cPanel, so you can compare your current DNS records. Open Zone Editor in cPanel and keep the list open, or take a screenshot.
- About 30 minutes, plus waiting time for the nameserver change.
Step 1: Create a Cloudflare account and add the domain
- Sign up at dash.cloudflare.com and confirm your email.
- Click the button to add a domain (it may say Add a domain or Onboard a domain) and type your domain without www, for example
yourcompany.com. - Choose the Free plan.
Step 2: Review the DNS records carefully
Cloudflare scans your current DNS and imports the records it finds. It often misses some, so compare with your cPanel Zone Editor:
- A records for the root domain and
wwwshould point to your hosting IP. These can be Proxied (orange cloud). - MX, and the A record for
mail, must be DNS only (grey cloud). Email cannot pass through the Cloudflare proxy. - TXT records (SPF, DKIM, DMARC, Google or Microsoft verification) must all be copied exactly.
- Records for
cpanel,webmail,ftpand similar: setftpto DNS only. Keep it simple and set the others to DNS only too, unless you know you need the proxy.
Step 3: Change the nameservers
- Cloudflare shows you two nameservers, for example
xxx.ns.cloudflare.comandyyy.ns.cloudflare.com. Copy them exactly; each account gets its own pair. - Log in to your EgWeb client area, open the domain and choose the nameservers option (see the client area guide).
- Select custom nameservers, replace the current ones with the two Cloudflare nameservers and save.
- Back in Cloudflare, click the button to check nameservers.
The change usually takes a few minutes to a few hours, sometimes up to 24 to 48 hours. See why DNS changes take time. For .eg domains the change may be handled by EgWeb with the registry, so open a ticket if the option is not available.
Step 4: Finish the basic settings
- When Cloudflare emails you that the site is Active, open the domain dashboard.
- In SSL/TLS, set the mode to Full (strict) if your hosting has a valid SSL certificate (EgWeb hosting includes free AutoSSL).
- Turn on Always Use HTTPS under SSL/TLS > Edge Certificates.
- Test your website, cPanel login, webmail and sending/receiving email.
Important: DNS is now managed in Cloudflare
After the move, changes you make in cPanel Zone Editor have no effect on the live site. Add or edit every record (for example a new subdomain or Google verification) in the Cloudflare DNS page.
Common problems
- "Too many redirects": SSL mode is Flexible while your site forces HTTPS. Use Full (strict).
- Email stopped: MX or mail records missing or proxied.
- Error 521 or 522: the hosting server cannot be reached through Cloudflare. Contact us so we check the firewall.
Frequently asked questions
Is Cloudflare free really free?
Yes, the free plan has no time limit. Paid plans add extra features; most small business sites do not need them.
Can I go back?
Yes. Set the nameservers back to EgWeb's nameservers in the client area. Your cPanel DNS zone is still there.
Do I still need hosting?
Yes. Cloudflare is not hosting; it sits in front of your hosting.
Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.