AceFlash 0 Posted October 11, 2020 Share Posted October 11, 2020 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 More sharing options...
customercare 2 Posted October 13, 2020 Share Posted October 13, 2020 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 More sharing options...
rolandsaven 1 Posted October 14, 2020 Share Posted October 14, 2020 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 More sharing options...
Recommended Posts