Yes, you can enable CloudFlare on your root domain (e.g., mywebsite.com) if it is set as an A record. CloudFlare fully supports root domains and allows you to proxy (orange cloud) them to benefit from its security, performance, and caching features.
How CloudFlare Works with Root Domains
CloudFlare acts as a reverse proxy, which means it handles requests for your root domain, providing:
- Improved Performance: By caching static content and using its global CDN.
- Enhanced Security: Protection against DDoS attacks and malicious traffic.
- SSL Support: Secure HTTPS connections with free SSL certificates.
Steps to Enable CloudFlare for Your Root Domain
Follow these steps to set up CloudFlare for your root domain:
1. Add Your Domain to CloudFlare
- Log in to your CloudFlare Dashboard.
- Click on Add a Site and enter your domain name (e.g.,
mywebsite.com). - Select your preferred plan (Free or Paid) and proceed.
2. Update Your DNS Records
- In the DNS settings, ensure your root domain (
@) is set as an A record pointing to your server’s IP address. - Enable CloudFlare’s proxy (orange cloud) for the root domain to activate its features.
3. Update Your Nameservers
CloudFlare will provide nameservers to use for your domain. Update these in your domain registrar’s settings:
- Log in to your domain registrar’s dashboard.
- Replace the current nameservers with the ones provided by CloudFlare.
- Allow up to 24-48 hours for DNS changes to propagate globally.
4. Test Your Website
Once the nameserver update is complete, visit your website (e.g., https://mywebsite.com) to ensure it is working correctly. Verify that the SSL is active and the site loads as expected.
Common Issues and Considerations
1. Root Domain vs. Sub-Domains
CloudFlare supports both root domains and sub-domains. However, ensure that all sub-domains you wish to proxy are explicitly added to CloudFlare’s DNS settings.
2. Email Services
If you have email services associated with your root domain, ensure the following DNS records are set to DNS Only (gray cloud):
mail.mywebsite.com- MX records
- SMTP, IMAP, or POP3 sub-domains
CloudFlare does not proxy non-HTTP services like email.
3. Redirecting WWW to Root
If your website uses both www.mywebsite.com and mywebsite.com, configure a page rule in CloudFlare to redirect traffic to your preferred version:
- Go to the Page Rules section in the CloudFlare dashboard.
- Create a rule to forward
www.mywebsite.comtomywebsite.com(or vice versa).
4. SSL Compatibility
If your server has an SSL certificate installed, use Full or Full (Strict) SSL mode in CloudFlare’s SSL/TLS settings for full encryption between CloudFlare and your server.
Need Assistance?
If you need help enabling CloudFlare for your root domain or configuring its settings, contact our support team through the CustomerPanel. We’ll assist you in ensuring your website is secure and performing optimally.