Proxy Real IP is a simple plugin that sets user's IP addresses correctly when running WordPress behind a load balancer or other proxy.
|Author:||Sam Parsons (profile at wordpress.org)|
|WordPress version required:||3.0.1|
|WordPress version tested:||3.3.2|
|Added to WordPress repository:||25-09-2012|
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|Total downloads:||7 460|
Click to start download
If you're running WordPress behind a proxy, chances are that the IP address of the user browsing your site won't show up, instead WordPress will see the IP address of your proxy server. Proxy Real IP sets this straight by looking at the HTTP headers that the proxy sends.
Proxy Real IP looks in the following HTTP headers: X-FORWARDED-FOR, X-FORWARDED, FORWARDED-FOR, FORWARDED, X-REAL-IP
Proxy Real IP sets the user's IP address to the first HTTP header defined that matches a simple regular expression of an IP address (220.127.116.11).
Proxy Real IP also sets the $_SERVER['HTTPS'] variable correctly when running behind a proxy so that WordPress can determine whether or not the proxy connection is over HTTPS. It looks to the HTTP_X_FORWARDED_PROTO PHP server variable to determine this.
- 2012-12-27 Added HTTPS detection.
- 2012-09-25 Initial version launched. Started with some ideas from https://wordpress.org/extend/plugins/real-ip/ which was no longer updated.