These steps were followed as part of the 2016 Speed Study on CloudFlare, as well as the 2017 Speed Study on Cloudflare & WP Rocket.

cloudflare-logo

How to Setup CloudFlare – Step by Step

Step 1: First up, we need to get an account setup with CloudFlare. After signing up and activating through email, click through to Add Site.

CloudFlare Account Setup - Screenshot 1

Steps 2 & 3: Enter your Site’s Domain Name and Click Begin Scan.

Add Websites - Screenshot 2

Step 4: The scan should take about 1 minute to complete. Then click Continue Setup.

Scan Complete - Screenshot 3

Step 5: The scan has picked up all the DNS records and has automatically selected the 2 crucial records we would like to assign to CloudFlare (those with a status of an orange cloud). With no changes needed, click Continue.

DNS Records - Screenshot 4

Steps 6 & 7: Select the CloudFlare Plan called Free Website, then click Continue.

Select CloudFlare Plan - Screenshot 5

Step 8: Now we need to go to our Domain Provider and change the current nameservers to the 2 CloudFlare nameservers. They say the transfer can take up to 24 hours, but I found it was much quicker than that, usually between 5 to 20 minutes.

Step 9: Then click Continue.

Change to CloudFlare Nameservers - Screenshot 6

WP Rocket Integration

Steps 10 to 12: When the Nameservers have been transferred, the status in the CloudFlare Dashboard changes to Active. Once you see Active, it’s time to head back to our WordPress Dashboard and open up the WP Rocket Settings to the CDN tab. Check CloudFlare, uncheck CDN, then click Save Changes.

WP Rocket CDN Settings - Screenshot 7

Step 13: A new CloudFlare tab will be created. Add the email address you used to setup CloudFlare.

Step 14: Add the API Key. The learn more link will help you to find this in CloudFlare.

Step 15: Add your Website’s Domain.

Steps 16 & 17: Choose Yes to enable Optimal CloudFlare settings. Then click Save Changes.

WP Rocket CloudFlare Settings - Screenshot 8

Step 18: And the final step in setting up CloudFlare is to Clear the Cache from the Tools tab.

Select CloudFlare Plan - Screenshot 9

Questions?

If you have any questions about this tutorial on How to Setup CloudFlare, please feel free to ask in the comments below and I will try my best to answer them 🙂