https://www.cloudflare.com/technical-resources/
Logging Real Visitor IP Addresses: mod_cloudflare for Apache httpd
Because Cloudflare acts as a proxy, you will notice changes to the way that your website visitors' IP addresses are displayed both in your server logs and web applications - notably that all access appears to be coming from Cloudflare IP addresses. You can read more about the reasons for this in our knowledge base article. You can change this behavior and log & display the actual visitor IP addresses by using mod_cloudflare. Requirementsmod_cloudflare supports Apache httpd 2.2.x and 2.4.x. Installation requires root access to the command line of your server via SSH. Note: if you use cPanel, follow the proper installation method below. However, if you are a hosting provider, you should install the Cloudflare cPanel plugin instead. Installing the Cloudflare cPanel plugin will automatically install mod_cloudflare. Note that using the Cloudflare cPanel plugin requires that you are a Certified Partner with a Host API Key. You can apply to be a Certified Partner here.
|