Step 1: Create a Cloudflare Account
- Visit Cloudflare's website.
- Click on Sign Up in the top right corner.
- Enter your email address and create a secure password.
- Click Create Account to finish registration.
Step 2: Add Your Website to Cloudflare
- After logging into your Cloudflare account, you’ll be prompted to Add a Site.
- Enter your website's domain (e.g.,
example.com
) and click Add Site. - Cloudflare will scan your domain’s DNS records. This may take a few seconds.
Step 3: Review DNS Records
- Cloudflare will display a list of DNS records (e.g., A records, CNAME records) associated with your domain.
- Ensure all DNS records are correct and reflect your hosting provider's details. You may need to manually add or modify records if something is missing.
- Once everything is correct, click Continue.
Step 4: Choose a Cloudflare Plan
- Cloudflare offers different plans, from free to premium options with advanced features.
- Select the Free Plan if you are just looking for basic performance and security improvements. You can upgrade later if needed.
- Click Confirm Plan to proceed.
Step 5: Change Your Domain’s Nameservers
-
Cloudflare will provide two new nameservers for your domain (e.g.,
ns1.cloudflare.com
andns2.cloudflare.com
). -
Log in to your domain registrar (the service where you registered your domain) and update the Nameservers to the ones provided by Cloudflare.
- Example: If your domain is registered with GoDaddy, Log in to your GoDaddy account, go to the "DNS Management" section, and update the nameservers to Cloudflare's.
-
Save the changes. The DNS change may take anywhere from a few minutes to 24 hours to propagate fully.
Step 6: Cloudflare Configuration
- Once the nameservers are updated, Cloudflare will automatically start protecting and accelerating your website.
- You can log in to your Cloudflare dashboard at any time to adjust settings, such as enabling SSL/TLS for secure connections, setting up Page Rules, or adjusting security settings like DDoS protection.
Step 7: Verify Website is Active on Cloudflare
- To confirm that Cloudflare is working, visit your website. You should see a performance improvement and security features enabled.
- Use the Cloudflare Analytics dashboard to monitor traffic and performance metrics for your site.
Optional Settings (Advanced Configuration)
If needed, you can configure additional features such as:
- SSL/TLS Encryption: Enabling SSL for secure HTTPS traffic.
- Firewall Rules: Customizing security rules to block or challenge suspicious visitors.
- Caching and Page Rules: Adjusting caching settings to optimize site performance.
- Rate Limiting: Protecting your site from abusive traffic patterns.
Support and Resources
Cloudflare provides detailed support documentation and a community forum for troubleshooting. You can access these from your Cloudflare dashboard or visit the Cloudflare Help Center.