A Content Delivery Network (CDN) is the single most effective way to optimize your site's speed for global audiences. By routing your domain through Cloudflare CDN, you cache static resources (like images, CSS, and JS) across over 300 global edge data centers. This ensures that a visitor in London or Sydney loads your files in milliseconds from a physical server down their street. In this guide, we show you how to set up Cloudflare for free.
Step 1: Create a Free Cloudflare Account
- Go to Cloudflare.com and sign up for a free account.
- Enter your website URL (e.g.
gethostwise.online) and click Add Site. - Select the **Free Plan** option, which offers full global CDN capabilities, free DDoS protection, and premium DNS speeds at zero cost.
Step 2: Update Your Domain Nameservers
Cloudflare will scan your existing DNS settings and display them. Verify that all records are correct, then click Continue. Cloudflare will prompt you to replace your registrar's default nameservers:
- Log into your domain registrar (Namecheap, GoDaddy, etc.).
- Find the **Custom Nameservers** section in your domain settings.
- Replace the default entries with the two custom Cloudflare nameservers provided (e.g.
dave.ns.cloudflare.com). - Save changes and wait for propagation (usually completed in 10-30 minutes).
Step 3: Crucial Cloudflare Speed & Security Settings
To maximize speed gains and prevent layout shifts, configure these settings in your Cloudflare dashboard:
- Auto Minify: Navigate to
Speed > Optimizationand check HTML, CSS, and JavaScript. This compresses your files, making payloads smaller. - Brotli: Turn on Brotli compression to compress static files up to 20% smaller than traditional Gzip.
- Always Use HTTPS: Go to
SSL/TLS > Edge Certificatesand toggle Always Use HTTPS to redirect all insecure traffic securely.