Reverse proxy may leak your IP behind Cloudflare?

My site is has a reverse proxy / {} is on Cloudflare and it’s real IP is’s real IP is now leaked because has a php code $_SERVER[“REMOTE_ADDR”]

Is there any way to hide IP of

Many thanks

No, that’s a fundamental requirement of internet protocols.

Your Caddy is connecting to the upstream server in order to retrieve a response on behalf of its client, and for the upstream server to return any kind of response, it needs to know where to address it - specifically, your Caddy server’s IP address.

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