How To Install Mod_cloudflare On CPanel

CloudFlare is a performance and security service. The CloudFlare cPanel plugin makes it easy to integrate into your hosting control panel. The CloudFlare module automatically translates visitor IP addresses to reflect the visitor’s original IP address rather than the IP address of the CloudFlare proxy servers.

Installing mod_cloudflare on a cPanel Server is very easy. Just follow 8 steps as below.

Step 1 :

Download core file by using the following command :

WGET HTTPS://RAW.GITHUBUSERCONTENT.COM/CLOUDFLARE/MOD_CLOUDFLARE/MASTER/MOD_CLOUDFLARE.C

Step 2 :

Connect to your server through SSH and log in as root.

Step 3 :

Change directory to /usr/local/src by using the following command :

CD /USR/LOCAL/SRC

Step 4 :

Get the source code for mod_cloudflare by using the following command :

WGET –NO-CHECK-CERTIFICATE HTTPS://RAW.GITHUB.COM/CLOUDFLARE/MOD_CLOUDFLARE/MASTER/MOD_CLOUDFLARE.C CLOUDFLARE-TOOLS/MASTER/MOD_CLOUDFLARE.C

Step 5 :

Build and install mod_cloudflare by using Apache Extension Tool by using the following command :

APXS -A -I -C MOD_CLOUDFLARE.C

Step 6 :

restart the Apache Server daemon by using the following command :

SERVICE HTTPD RESTART

Step 7 :

Update the Apache configuration data by using the following command :

/USR/LOCAL/CPANEL/BIN/APACHE_CONF_DISTILLER –UPDATE

Step 8 :

Confirm the module is loaded properly by using the following command :

HTTPD -M | GREP CLOUD

.
.
.
.
.

Now,

Apache will log the visitors’ IP addresses instead of the CloudFlare IP’s.

Add a Comment

Your email address will not be published. Required fields are marked *