How Does It Work?
Once CloudFlare is enabled for your website, it is designated as your authoritative name servers; this allows CloudFlare to clean and accelerate your traffic as all requests to your website are now routed through CloudFlare. With network routing technology and 23 data centers around the world, CloudFlare is able to:
- Bring visitors the fastest connection possible - CloudFlare's global Anycast network routes customers to the closest datacenter, resulting in your website loading twice as fast for your visitors no matter where they are located.
- Screen your website's traffic for malicious visitors - CloudFlare receives requests for your website and analyzes them to determine if a visitor is a threat based on the visitor's IP, the resource being requested, the payload being posted and how frequently requests are being made among other things. Threats are blocked and good visitors are able to quickly access the pages they request.
- Optimize your web content - Rocket Loader technology is included in all CloudFlare plans (even the free one) and helps your website to more efficiently process requests for third party scripts like apps, widgets and tags. Rocket Loader ensures that no script blocks your page content from loading by bundling all script requests into a single request and loading them one at a time.
Advantages of CloudFlare
There are several advantages to using the CloudFlare service:
- Site Performance Improvement - CloudFlare has proxy servers located throughout the world which are located closer to your visitors; this makes page load speed improvement possible as the cached content is delivered from the closest caching box rather than directly off our servers. There is a lot of research that shows the faster the site, the longer a visitor stays.
- Mobile Device Optimization - Various technologies, such as Rocket Loader and AutoMinify, come together to make your pages as fast and efficient as possible no matter what device is surfing your site.
- Bot and Threat Protection - CloudFlare uses data from its own community,Project Honey Pot and other third party sources to identify malicious threats online and stop attacks before they even get to your site. You can see which threats are being stopped by accessing your CloudFlare dashboard.
- Spam Comments Protection - CloudFlare leverages data from third party resources to reduce the number of spam comments on your site.
- Alerting Visitors of Infected Computers - CloudFlare alerts human visitors witth infected computers that they need to take action to clean up the malware or virus on their machine. Visitors can then enter a CAPTCHA to gain access to your site.
- Offline Browsing Mode - In the event that HostGator servers are unavailable, visitors should still be able to access your site since CloudFlare serves visitors a page from its cache.
- Lower Resource Usage - As fewer requests hit HostGator servers, the overall CPU usage of your account is reduced. Even during a traffic surge, your server will stay online as CloudFlare absorbs the requests.
- New Site Stats - CloudFlare gives you insight into search engine crawlers, and threats and legitimate traffic in easy to read formats.
- CloudFlare Apps - CloudFlare offers a single marketplace where the web's leading apps can be quickly and safely installed on any website with just a few clicks.
- SSL Support - SSL usage is now applicable through CloudFlare, in which additional information is available through the following article: Cloudflare SSL
Limitations of CloudFlare
Before enabling CloudFlare for your website, you may want to consider the following:
- Currently, requests must be directed to www.yourdomain.tld instead ofyourdomain.tld which means you may need to make some configuration changes (WordPress installations are automatically adjusted).
- CloudFlare caches static content from your site. While this reduces the load on your server, it means that if you make a change to an existing static file, like an image, there may be a delay before the change appears. While you are updating your site, you can put CloudFlare in Development Mode so that changes appear immediately.
How to Activate CloudFlare
Currently, Shared and Reseller Linux plans may enable and manage CloudFlare services directly via cPanel.
Note: CloudFlare is not available on Windows, VPS or Dedicated server accounts. If you wish to use the CloudFlare service with one of these hosting packages then the current recommendation is to use the CloudFlare website directly to set up and manage your domain's DNS:http://cloudflare.com
To enable CloudFlare through cPanel on Shared and Reseller plans:
- Log into cPanel.
- Under the Software/Services section, click the CloudFlare icon.
- Enter your email address, and click the checkbox to accept CloudFlare's Terms of Service.
- If you wish to add the domain to an existing CloudFlare account, simply enter the email address for the desired account and you will be prompted to provide the password.
- Click Signup Now! You will automatically be redirected to the Activate CloudFlarepage.
- Next to the site on which you wish to enable CloudFlare, click Edit.
- Under CloudFlare Status, click on the gray cloud to enable CloudFlare for the domain.
- The gray cloud will change to an orange cloud, and a message will appear at the top of the screen confirming successful activation.
Once CloudFlare is enabled, you can access reports and modify settings for your site from cPanel or from your CloudFlare dashboard. For help retrieving your username and password, please see the article below: