How to show real visitor’s IP address after installing CloudFlare protection while running Apache web server on Debian 7 or Debian 8

Well it's fairly self explanatory - you are running any service that needs customer's real IP address and now you have a problem - it shows only the proxy address of CloudFlare, this is especially painful when you do for example access restrictions (IP restrictions) via .htaccess file. So how to fix this on Debian 7? Btw. the # means you need to be root just fyi... 1) Check for dependencies: # apt-get install libtool apache2-threaded-dev 2) wget the necessary files: # wget https://www.cloudflare.com/static/misc/mod_cloudflare/mod_cloudflare.c (Just Read more [...]