If you’re running self-hosted applications such as web servers, virtualization platforms or monitoring tools, or even if you use cloud-hosted services, connecting your domain to Cloudflare can be one of the best decisions you make.
Cloudflare doesn’t just improve the performance of your site or application through its content delivery network (CDN); it also protects your infrastructure from attacks and reduces the load on your servers. On top of that, the basic Cloudflare setup is completely free, which makes it an ideal solution for beginners and advanced administrators alike.
In this article we’ll walk through the steps to connect your domain to Cloudflare and how you can take advantage of its benefits. We’ll also cover use cases, such as using Cloudflare Tunnels to protect internal services, or monitoring tools like Uptime Kuma.
Why Use Cloudflare to Manage Your Domain?
Connecting your domain to Cloudflare instead of pointing it straight at your server, whether that server is self-hosted or in the cloud, brings a set of benefits that go well beyond simply managing DNS.
1. Better Performance
Cloudflare acts as a Content Delivery Network (CDN), caching your site’s static content on servers distributed all over the world. That means users get the content from the server closest to them, which cuts latency and improves load times.
This is particularly useful if:
- You run local web servers (Apache, Nginx) or media apps like Jellyfin or Plex.
- You want to speed up dynamic sites hosted in the cloud.
2. Stronger Security
Cloudflare adds an extra layer of security against a range of threats:
- DDoS protection: Cloudflare filters out Distributed Denial of Service attacks, keeping your site or service running even while it’s being hit.
- Web Application Firewall (WAF): Blocks malicious traffic and protects against common vulnerabilities such as SQL injection and XSS attacks.
- DNSSEC: Protects your domain against DNS spoofing attacks through universal DNSSEC.
If you run internal services like Uptime Kuma or management platforms like Proxmox VE, these security measures are essential to keep unauthorized access out.
3. Lower Server Load
By serving static content from its own servers, Cloudflare cuts down the number of requests that reach your origin server. That frees up resources to handle dynamic traffic or heavier tasks.
For example:
- If you have a self-hosted web server, Cloudflare reduces the load by serving CSS, JS, images and other static assets from its CDN.
- In media applications like Plex or Nextcloud, it improves your network’s efficiency by handling caching.
4. Free SSL Certificates
Cloudflare provides SSL certificates free of charge, which makes rolling out HTTPS on your domain straightforward. That improves security and builds trust with the people visiting your site or application.
On top of that, if you set up a Cloudflare Tunnel, your internal services get a valid SSL certificate without any manual configuration on your part.
5. Bot and Spam Protection
Cloudflare includes tools to block malicious bots and protect your site’s forms and comments from spam. That’s especially useful for self-managed projects that don’t have a dedicated antispam solution.
6. Flexibility for Self-Hosted and Cloud-Hosted
Cloudflare is a great fit both for self-managed servers (at home or in a data center) and for cloud-hosted applications.
- Self-Hosted: If you have a server on your local network, Cloudflare protects your public IP address and removes the need for DDNS on residential connections with a dynamic IP.
- Cloud-Hosted: If you use AWS, DigitalOcean or any other provider, Cloudflare optimizes content delivery and adds extra protection against attacks.
In both cases, its simple interface and the advanced features available on the free plan make it ideal for managing any domain.
How to Connect Your Domain to Cloudflare (Step by Step)
Step 1: Create a Cloudflare Account
- Head over to Cloudflare and create a free account.
- Once you’re registered, open the dashboard.
Step 2: Add Your Domain

- Type in your domain name (for example,
itrafa.online), select “Quick scan for DNS records” and click “Continue“ - Select the free plan (scroll to the bottom of the page) and click Continue.

- Here you’ll see the list of DNS records Cloudflare found for that domain (if there are any), and you can also add new ones. In my case I’ll point this domain to itrafa.com

Step 3: Change Your Domain’s Nameservers
Cloudflare will give you two custom nameservers.

Log in to your domain provider’s control panel (GoDaddy or Namecheap, for example) and replace the nameservers with Cloudflare’s.

Save the changes and wait for propagation to finish (it can take up to 48 hours, but it’s usually much faster). Cloudflare will email you once it’s ready.
Step 4: Configure Cloudflare’s Rules

Once your domain is connected, set up the basic rules you care about or apply the recommendations available on your plan

It should look like this:

As you can see, Cloudflare has turned on key optimization settings such as:
- Measurement: Enabled tools like RUM (Real User Measurement) and Speed Brain to analyze performance based on real user data.
This helps you identify and optimize load times efficiently. - Protocol: Turned on features like HTTP/2, HTTP/3, TLS 1.3 and “Always use HTTPS”.
This helps improve load speed, reduce latency and keep connections secure. - Tools: Enabled Early Hints to preload content before the browser even asks for it.
This helps cut waiting times and improve the user experience.
In short, these optimizations speed up your website, improve security and give your visitors a smoother experience.
Next Steps
- Use Cloudflare Tunnels
Once your domain is connected, set up a tunnel to expose internal services like Uptime Kuma or the Proxmox VE panel. - Optimize self-hosted apps
Take advantage of Cloudflare’s CDN and firewall to protect and speed up self-managed services such as web servers, Jellyfin or Nextcloud. - Improve security with Zero Trust
Combine Cloudflare with Zero Trust access rules to restrict access to specific users or authorized IP addresses.
Conclusion
Connecting your domain to Cloudflare is a simple, free way to improve the performance, security and flexibility of your services, whether they’re self-managed or in the cloud. From optimizing content delivery to protecting against DDoS attacks, Cloudflare gives you a complete toolset that makes domain administration easier.
If you’re running applications like Uptime Kuma, media servers or even virtualization platforms like Proxmox VE, Cloudflare is an essential ally for taking your projects to the next level.
Any questions or suggestions? Drop them in the comments and I’ll be glad to help. 🚀
