• Most of proxy servers set it’s own IP address as visitor’s in PHP server variable REMOTE_ADDR. This leads to incorrect IP address when visitor will come to my site and with every visitor there is just one IP address, which with system of IP recognision will lead to incorrect visitors number, people will look at this number and say “Only me? What the hell it that site?” and will leave out… As most of plugins to correct the visitor’s IP are outdated and the only one that is up to date is made in china and do not work leads me to request implemetation of IP address correction for users of sites under proxy servers. Not only to increase visitor’s number but for control of IP addresses visiting sites and ban spamming IP’s on my sites easily with desired plugins…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Most of proxy servers set it’s own IP address as visitor’s in PHP server variable REMOTE_ADDR.

    All reverse proxies work that way though L2 load balancers don’t or more accurately don’t have to.

    How would any web server see the end user’s real IP address when the proxy server IP is what the web server sees and is communicating with?

    Thread Starter CZghost

    (@czghost)

    From HTTP_X_FORWARDED_FOR and HTTP_X_REAL_IP headers. Developers that work with such things like PHP should know this… I say users that run WordPress under proxy server are now forced to download plugins that even do not work correctly. Someone should do something with that…

    Thread Starter CZghost

    (@czghost)

    To make things clearer: now WordPress ÚSES this piece od code to get user’s IP: $_SERVER['REMOTE_ADDR'] which gets buggy on proxies. To make sure server gets really user’s IP, it should be replaced with $_SERVER['HTTP_X_REAL_IP'] or $_SERVER['HTTP_X_FORWARDED_FOR'] if the site runs under proxy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress running under proxy server’ is closed to new replies.