[wp-trac] Re: [WordPress Trac] #4198: $_SERVER['REMOTE_ADDR'] is a
bad environmental variable for some people
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 26 02:49:25 GMT 2007
#4198: $_SERVER['REMOTE_ADDR'] is a bad environmental variable for some people
-----------------------------------+----------------------------------------
Reporter: technosailor | Owner: technosailor
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: Administration | Version: 2.2
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+----------------------------------------
Comment (by andy):
I am not in favor of this solution as a core patch. Most blogs are not so
affected and would see more harm than good from this patch.
Those who use proxies know who they are and should handle it themselves as
needed. I suggest adding a plugin or modifying your own wp-config.php to
include something like the following:
{{{
if ( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) )
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4198#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list