Need users to see their own IP address on webpage


I have a website that I need to have the user’s IP address appear on.

What do I need to do to make that happen on this page? (it worked before I configured Cloudflare.)

TIA for any answers.


Your web server needs to restore visitor IP addresses from the headers (bunch of links on how to do it below). Since that’s a PHP script, you can modify it to look for typical Proxy headers: CF-Connecting-IP or X-Forwarded-For

1 Like

Thank you, I will check that out.

1 Like
closed #4

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