Overview
This post will show you how to use the panel to enable Cloudflare on your site.
Extra step for WordPress sites
Before installing Cloudflare in the panel, make sure you alter the URLs on your WordPress site. If you don’t do this, your website can get stuck in a redirect loop.
Many hard-coded URLs in your database may refer to the non-www version of your domain if your site runs on WordPress. All URLs in your WordPress database must point to the www version in order to use Cloudflare. Consider the following scenario:
https://www.example.com
You’ll get an infinite redirect loop error if you don’t change the URLs in your database.
‘Too many redirects’ problem in WordPress
For instructions on how to update all URLs in your WordPress database, see the following article.
How can I alter the URL of my WordPress site?
Enabling Cloudflare
Go to Domains > Manage Domains.
To use any Cloudflare Services, you must first add a hosting plan to your account. Instructions can be found in the article How do I create a domain.
If your domain is on GreggPress, you’ll need to contact support to have a Cloudflare plan set up.
After you’ve added a hosting plan to your domain, go to the Web Hosting column and click the Edit button to the right of the domain.
When prompted if you want www in your URL, select ‘Add WWW’ for domain name if you’re using Cloudflare without a subdomain.
Scroll to the Cloudflare Services section at the bottom of the page.
Check the box next to ‘Enable Cloudflare on this domain?’
Choose a Cloudflare account type from the drop-down menu:
If you don’t already have a Cloudflare account, choose the New Account option from the Cloudflare account dropdown menu. After that, you’ll need to enter a valid email address and create a password for your new Cloudflare account. You’ll use this username and password to log in to Cloudflare.com and manage your account.
Choose Existing Account from the dropdown menu if you already have a Cloudflare account. The email address and password for your Cloudflare account must then be entered.
You’ll see an option for Existing Accounts in the drop down box if you’ve already set up a Cloudflare account in your panel for another site or set up Cloudflare previously. If you see this option and want to use an existing account, simply pick the desired email address.
Select the Cloudflare subscription level after you’ve set up your Cloudflare account.
For more information on these plans, see the Cloudflare Subscriptions article.
To save your updated options, scroll down and click the Change Settings button.
DreamHost will upgrade the domain to use Cloudflare in 5-10 minutes.
However, in order for Cloudflare to work, the DNS modifications to the domain will take longer to properly propagate online.
If you see the following problem, make sure your domain is set up to use WWW in the domain name:
After you’ve enabled Cloudflare, you’ll find it mentioned under the Web Hosting column on the Manage Domains page, along with the PHP version. If you ever need to clear your Cloudflare cache, you’ll notice a Clear Cache button to the right of the website.
Disabling Cloudflare
To turn off Cloudflare, follow the procedures above, but uncheck the Enable Cloudflare on this domain? box. before you save your modifications, check the box.