vBulletin correct reporting of IP address

It's recommended to make the following changes to includes/config.php so vB doesn't report incorrect visitor IP addresses. Open includes/config.php and locate these two config variables

1) Add all your server's IPs to this list separating each IP with a comma

/* Enter your known [trusted] proxy servers here. You can list multiple trusted IPs separated by a comma.*/
$config['Misc']['proxyiplist'] = ',';

2) Locate this variable in the same file (should be right underneath the previous variable) then change HTTP_X_FORWARDED_FOR with HTTP_X_REAL_IP

/* If the real IP is passed in a http header variable other than HTTP_X_FORWARDED_FOR, then you can set the name here; */
//$config['Misc']['proxyipheader'] = 'HTTP_X_FORWARDED_FOR';
$config['Misc']['proxyipheader'] = 'HTTP_X_REAL_IP';

And you're done.
  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

Stop worpress wp-login.php brute force attacks with Varnish throttling (Rate Limit)

Version 1.8.4 of the cPanel Varnish Plugin has seen a new feature being introduced: the ability...

Varnish Plugin on Amazon AWS with Elastic IP or NAT

Here are the two short steps required to ensure licensing is setup properly so you're able to use...

Correct IP reporting in legacy software / scripts

The plugin follows reverse proxy software proper handling of X-Forwarded-For headers and in this...

Why does the plugin change the server header?

Normally, if you download and install Varnish (the source not the plugin) yourself, the headers...