Provides a CPanel Plugin to allow one click CloudFlare setup.
Switch branches/tags
Nothing to show
Pull request Compare This branch is 537 commits behind cloudflare:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


CloudFlare plugin for CPanel.


 * Net::SSLeay
 * Simplezoneedit or Zoneedit features

Provides access to the CloudFlare service. Learn more about CloudFlare at

First, acquire a host api key from CloudFlare. 

Install (as root):

./install_cf HOST_API_KEY [mod_cf] [Provider Name]

This works for the default theme and locale. Other themes or locales may require custom work. 
Replace HOST_API_KEY with your api key. Adding the string mod_cf will also install the Apache 
extension mod_cloudflare on the local server. More information is available here:

Edit API key:

If you need to, update your API key by editing the file /usr/local/cpanel/etc/cloudflare.json, updating 
the value host_key.

Edit CloudFlare prefix:

After having been routed through the CloudFlare network, if the traffic is clean and cannot be handled by 
the CloudFlare cache, it will be relayed to a single given subdomain. Be default, this is (replacing with each user's domain). 
If you wish to change the subdomain, edit the file /usr/local/cpanel/etc/cloudflare.json, 
changing the value of the host_prefix key to the desired subdomain. This subdomain will be 
automatically added to each user's zone file.


/usr/local/cpanel/bin/unregister_cpanelplugin <full path to install file cloudflare.cpanelplugin>


To include customized text, edit the file /usr/local/cpanel/etc/cloudflare_local.tmpl. This file is included in CloudFlare's HTML template.

Command Line Tools:

List all zones currently active on CloudFlare:
# perl Cpanel/ list

Check to see if there is a new version of the CloudFlare plug-in available.
# perl Cpanel/ check

Copyright (c) 2011 by CloudFlare, Inc.
All Rights Reserved.