Introduction
Cloudflare is one of the most popular CDN and website security platforms used to improve website speed, security, and performance.
Connecting your website to Cloudflare helps protect your website from attacks while also improving loading speed using global CDN caching.
This beginner-friendly guide explains how to connect Cloudflare to your website step-by-step.
Benefits of Using Cloudflare
- Improved website speed
- Free CDN services
- Free SSL certificate
- DDoS protection
- DNS management
- Website firewall protection
- Reduced server load
- Improved SEO performance
Step 1: Create a Cloudflare Account
Visit https://www.cloudflare.com.
Create a free Cloudflare account using your email address and password.
Step 2: Add Your Website
After logging in, click on Add Site.
Enter your domain name and click Continue.
Step 3: Select a Cloudflare Plan
Cloudflare offers multiple plans.
For most websites, the Free Plan is enough.
Select the Free plan and continue.
Step 4: Review DNS Records
Cloudflare will automatically scan your existing DNS records.
Verify that important records are available:
- A records
- WWW records
- MX records
- Mail records
- Subdomains
Incorrect DNS records may cause website or email issues.
Step 5: Change Nameservers
Cloudflare will provide two custom nameservers.
You must replace your current domain nameservers with the Cloudflare nameservers from your domain registrar account.
For example:
- abby.ns.cloudflare.com
- mark.ns.cloudflare.com
Your actual nameservers may be different.
Step 6: Update Nameservers at Domain Registrar
Login to your domain registrar account such as:
- GoDaddy
- Namecheap
- Hostinger
- BigRock
- Bluehost
Replace existing nameservers with Cloudflare nameservers.
Save the changes.
Step 7: Wait for DNS Propagation
Cloudflare activation usually takes a few minutes, but global DNS propagation may take up to 24 hours.
During this time, some users may still see the old DNS records.
How to Check Cloudflare DNS Propagation
You can verify DNS propagation using:
Select the NS record type and search your domain.
If the Cloudflare nameservers appear globally, the setup is complete.
Step 8: Enable SSL Protection
Inside Cloudflare dashboard, open:
SSL/TLS
Select:
- Flexible SSL
- Full SSL
- Full Strict SSL
For HostPeppy hosting, Full SSL is generally recommended.
Step 9: Enable Performance Optimization
Inside Cloudflare dashboard, enable:
- Auto Minify
- Brotli Compression
- Caching
- Image Optimization
- HTTP/3
Common Cloudflare Problems
1. Website Not Opening
Verify DNS records and wait for propagation.
2. SSL Error
Ensure SSL mode is configured properly.
3. Email Not Working
Verify MX records inside Cloudflare DNS settings.
4. Infinite Redirect Loop
Incorrect SSL settings can cause redirect issues.
Why Cloudflare Helps SEO
- Improves website speed
- Enhances Core Web Vitals
- Improves uptime reliability
- Provides security against attacks
- Improves user experience
Need Help?
If you need assistance connecting Cloudflare with your website, the HostPeppy support team is available 24/7.
We can help configure Cloudflare, DNS settings, SSL certificates, caching, and security optimization.