Jump to content

Cloudflare issues (Members have CF IP)


AceFlash

Recommended Posts

Hey! I have cloudflare in front of my website. The problem is that at most cases the members have the CF IP logged instead of their real IP. 

From the past i know that its needed to add a line of code to some config file, but i dont know which and where.

Link to comment
Share on other sites

Make sure you have mod_cloudflare on your apache/nginx. 

If you have a vps you need to install mod_cloudflare. 

If you have a shared hosting - contact with your hosting provider. 

More information: https://support.cloudflare.com/hc/en-us/articles/200170916-Restoring-original-visitor-IPs-Option-1-Installing-mod-cloudflare#12345680

Link to comment
Share on other sites

Hi,

It should work with `mod_cloudflare` for now, but we should keep in mind that that it's deprecated. Cloudflare no longer updates and supports `mod_cloudflare` and they recommend to use `mod_remoteip`. As far as I know there is not much difference between the two in terms of configuration.

There are some instructions:

https://support.cloudflare.com/hc/en-us/articles/360029696071-Restoring-original-visitor-IPs-Option-2-Installing-mod-remoteip-with-Apache

Note: be careful not to enable both at the same time as the server will crash if they both try to set the remote IP to a different value.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...