This guide walks you through connecting your custom domain to your Webflow website using Cloudflare for domain management. We'll cover the essential steps to get your domain working smoothly with Webflow. This provides a strong foundation for our upcoming tutorials, where we'll show you how to leverage Cloudflare to optimize your Webflow site. Here are a few things we'll cover:
What you need before we begin
Now that you have everything ready, let’s move on to setting up Cloudflare as your DNS provider.
Once you have your Cloudflare nameservers, you'll need to update them with your domain provider. While this process is similar across all domain registrars, the exact menu names and layout will vary. We'll use Namecheap as an example in this guide, but you can find detailed instructions for your specific provider here:
Using Namecheap as our example, here's how to update your nameservers:
Note: Allow 24-48 hours for nameserver changes to propagate globally, though it's often much faster (5-10 minutes). During this time, your website will continue working normally as it transitions to Cloudflare.
Before configuring your DNS records, first remove any existing AAAA records from your DNS settings to ensure your site loads properly.
You'll need to configure the following DNS records regardless of which domain version (root or www) you plan to use as your default:
Required DNS records:
After setting up your DNS records, you'll need to choose whether your site uses the root domain (e.g., example.com) or the www subdomain (e.g., www.example.com) as its default address. This setting is configured within Webflow.
We recommend using the root domain (example.com) for a cleaner, more modern URL. The www. prefix is largely outdated, and most modern websites default to the root domain. Additionally, many browsers automatically resolve the root domain (for example, Google Chrome hides www. in the address bar).
Important considerations:
How to set your primary domain in Webflow:
Webflow automatically handles redirects between the www and non-www versions of your site, so you don't need to configure any additional redirects in Cloudflare.
Important: When adding these DNS records in Cloudflare, ensure that the Proxy status (the cloud icon) is set to Proxied (orange cloud) for all of the records listed below. This enables Cloudflare's performance and security features. Because you are enabling the proxy, you must also configure specific Page Rules, which we'll cover in the next section. Without these Page Rules, your site will experience SSL and connection errors.
Add the following records:
For the root domain add two A records:
For the www subdomain, add the following DNS record:
After adding your records, click Continue to activation and follow the instructions. Note that DNS changes may take a few minutes to a few hours to take effect, though they typically propagate quickly.
Because you’ve enabled the proxy (orange cloud) in Cloudflare for your Webflow DNS records, you must set up specific Page Rules to prevent conflicts.
Webflow already provides SSL security, and if Cloudflare also tries to manage SSL, it can cause issues like:
These Page Rules ensure that Cloudflare does not interfere and that Webflow’s SSL works correctly.
Now that we know why these rules are important, let’s set them up in Cloudflare:
Proper SSL/TLS configuration ensures a secure, encrypted connection for your Webflow site through Cloudflare. Setting Full (Strict) mode and enabling Always Use HTTPS prevents security issues. With this in place, your site is fully protected and ready for further Cloudflare optimizations.
Having trouble? Here's a quick guide to check the most important things, using accurate terms:
DNS propagation time: Nameserver changes can take minutes to 48 hours to propagate across the internet. Check propagation status at whatsmydns.net by checking "NS" records. If not complete after 48 hours, verify your nameserver settings with your registrar.
DNS records (in Cloudflare): In Cloudflare DNS settings, verify these essential records that connect your domain to Webflow:
Critical: Page rule:A missing or incorrect Page Rule can prevent both site loading and SSL certification. In Cloudflare Rules > Page Rules, ensure this exists:
Other website loading checks: If your site still won't load, try these steps:
Wait for SSL activation: After changing DNS, Cloudflare, or SSL settings, allow up to 30 minutes for the SSL certificate to fully activate. Try clearing your browser cache or using a different browser to verify.
Cloudflare SSL/TLS setting: Set SSL/TLS encryption mode to "Full (Strict)" to ensure secure connections between visitors, Cloudflare, and Webflow. Never use "Flexible" SSL as it creates security vulnerabilities.
Always use HTTPS: Enable "Always Use HTTPS" in SSL/TLS > Edge Certificates to force secure connections.
You have successfully connected your custom domain to Webflow via Cloudflare, ensuring your website is properly linked and secure. By following this guide, you’ve completed the essential setup needed to get your site running smoothly.
This setup is just the beginning! In future tutorials, we’ll show you how to optimize performance, manage bandwidth, enhance security, and unlock more advanced Cloudflare features for your Webflow site.
Need help with your Webflow site? Our agency specializes in Webflow solutions. Whether you need help setting up your domain or want to use Webflow and Cloudflare for advanced features, we’re here to help. Contact us to optimize your setup.
Learn how to add animated number counters to your Webflow site. This step-by-step guide explains how to do it in 5 minutes or less.
Learn how to add a copy URL button to your Webflow site. Step-by-step guide for implementing easy page sharing without plugins or code.
Learn how to add copy-to-clipboard button to your Webflow site in 5 minutes or less.