How can I enable CloudFlare?
- 19/10/2011 3:59 PM
ServerFreak is an official hosting provider of CloudFlare. As a result, we have implemented a module right in cPanel to allow one click activation of CloudFlare with any domain on our servers. To active CloudFlare on any ServerFreak cPanel shared hosting account:
- Login to your cPanel account and type 'CloudFlare' into the top left finder.
- If this is the first time accessing the CloudFlare interface, you will be asked to create an account. Provide your email address and agree to the terms of service once you read it. You will then be emailed a welcome email by CloudFlare for your ServerFreak account
- Once your account is created, you will be taken to the CloudFlare interface which lists all of your accounts domains. By default, they will not be powered by CloudFlare.
- To enable CloudFlare for any domain, simply click on the cloud. Once selected, CloudFlare will be enabled and the cloud will go from a grayed out image to bright orange.
- Once enabled, you can select the 'Statistics and Settings' option to view traffic for your domain and also modify the security settings. To view all of your available options, you must login to your CloudFlare account directly.
- Your site is now fully CloudFlare enabled. To disable CloudFlare, simply select the orange cloud again and it will be grayed out, indicating CloudFlare is no longer enabled
Note: CloudFlare does not modify the base A record for your domain (IE: domain.com) and only modifies sub-domains / CNAME records. If you want your base domain to be CloudFlare enabled you'll need to have it redirect to www.yourdomain.com. To achieve this follow these instructions:
- Add or modify your existing .htaccess file (usually located in /home/yourusername/public_html/.htaccess) and add the following lines:
-
RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] # Replace with your actual domain RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301] # Replace with your actual domain