99 CloudFlare IP module for Apache

by

in

.htaccess files with access control and apps like the anti-spam module from Automatic / WordPress wil not work unless the correct IP address is displayed.

 

Download the module from CloudFlare.com

The correct filname is available here:

https://www.cloudflare.com/resources-downloads/#mod_cloudflare

This is the download command:

wget https://www.cloudflare.com/static/misc/mod_cloudflare/ubuntu/mod_cloudflare-xenial-amd64.latest.deb

 

Then install the module:

sudo dpkg -i mod_cloudflare-xenial-amd64.latest.deb

 

Finish it up by restarting Apache:

sudo service apache2 restart

 

Your .htaccess file that limits access to the admin panel should now work correct.
So should other parts of Apache and WordPress that relies on a correct IP address.