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

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

Thank you

Which webserver are you using?

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

1 Like

apache

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

https://support.cloudflare.com/hc/en-us/articles/203656534-How-do-I-restore-original-visitor-IP-with-Apache-2-4-

@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

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

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