How PrestaShop web site know the IP address of the customer instead of cloudfare proxies IP


#1

May I know How PrestaShop web site know the IP address of the customer instead of cloudfare proxies IP?

Thank you


#2

Which webserver are you using?


#3

many ways to configure seeing visitors real ips outlined at https://support.cloudflare.com/hc/en-us/sections/200805497-Restoring-Visitor-IPs


#4

apache


#5

See the following article for restoring the visitor’s IP with Apache:


#6

@Judge already posted a link to mod_cloudflare, which would solve that issue.

mod_cloudflare works fine, however the issue is Cloudflare does not support it any longer. For this reason, and because Apache comes with an out-of-the-box solution as of 2.4, I’d rather use mod_remoteip


#7

It is a common practice for proxies to add the real client IP address as a http header to the request before forwarding it.


#8

This topic was automatically closed after 14 days. New replies are no longer allowed.