Restoring original visitor IPs

I have tried to follow the Cloudflare guide (https://support.cloudflare.com/hc/en-us/articles/360029696071) but I am still getting cloudflare IPs in my visitors log.

mod_remoteip is already installed on my server (CentOS)

I have an account for a live site and an account for the dev version - same server. Dev site is working fine - original IP is being sent through but the live site is still registering cloudflare IPs.

I added RemoteIPHeader CF-Connecting-IP to /etc/apache2/conf/httpd.conf

I changed LogFormat replacing %h with %a in /etc/apache2/conf/httpd.conf

I created /etc/apache2/conf/remoteip.conf and added the trusted proxies

I then restarted Apache but I am still getting cloudflare IPs in my visitor logs.

Please advise any further checks or changes I can make to make this work

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.