Getting Users Real IP address using PHP

前端 未结 5 1000
刺人心
刺人心 2020-12-06 15:39

I want to get the real IP address from users going on my site even if they use a proxy website like hidemyass.com

This is the code I have and thought it worked but I

5条回答
  •  青春惊慌失措
    2020-12-06 15:54

    Unless the proxy puts the real ip address in the headers (common - depending on why the proxy is being used) (generally in some form of "X-something"), then you can only see the ip address of the proxy.

提交回复
热议问题