mod_cloudflare and mod_cloudflare cpan
mod_cloudflare
When using Cloudflare, in order to retrieve the actual visitors IP that connect to your server, you must install mod_cloudflare. Normally when using Cloudflare, all of the IP’s that connect to your web server will come from a Cloudflare IP address. mod_cloudflare is an Apache module that forces Apache to log actual visitor IP addresses instead of cloudflare server IP’s. It can be installed on servers running cPanel, using the following commands:
cd /usr/local/src
wget --no-check-certificate http://github.com/cloudflare/CloudFlare-Tools/raw/master/mod_cloudflare.c
apxs -a -i -c mod_cloudflare.c
service httpd restart
/usr/local/cpanel/bin/apache_conf_distiller --update