Title: WordPress running under proxy server
Last modified: August 22, 2016

---

# WordPress running under proxy server

 *  [CZghost](https://wordpress.org/support/users/czghost/)
 * (@czghost)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wordpress-running-under-proxy-server/)
 * 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](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wordpress-running-under-proxy-server/#post-5314420)
 * > 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](https://wordpress.org/support/users/czghost/)
 * (@czghost)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wordpress-running-under-proxy-server/#post-5314455)
 * 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](https://wordpress.org/support/users/czghost/)
 * (@czghost)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wordpress-running-under-proxy-server/#post-5314482)
 * 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.

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 3 replies
 * 2 participants
 * Last reply from: [CZghost](https://wordpress.org/support/users/czghost/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/wordpress-running-under-proxy-server/#post-5314482)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
