Knowledgebase: Web Hosting > Tutorials
How can I enable CloudFlare?
Posted by Brian F., Last modified by Cody R. on 16 August 2011 02:30 PM
Hawk Host 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 Hawk Host shared hosting account:

  1. Login to your cPanel account and type 'CloudFlare' into the top left finder (Picture)

  2. 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 Hawk Host account

  3. 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 (Picture)

  4. 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 (Picture)

  5. 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 (Picture)

  6. 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:
  1. Add or modify your existing .htaccess file (usually located in /home/yourusername/public_html/.htaccess) and add the following lines:
  2. 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
(154 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).