If you use vBulletin and you are unable to login to your forum even with the correct credentials and you end up getting:
You have used up your failed login quota! Please wait 15 minutes before trying again.
The solution is simple. This happens because old versions of vBulletin will not display the original visitor IP address if the site is behind a reverse proxy (which is how our Firewall works).
To fix this issue you will need to edit your ./includes/class_core.php
file:
Simply change this:
function fetch_ip() {
return $_SERVER['REMOTE_ADDR'];
}
To this:
function fetch_ip() {
return (getenv('HTTP_X_FORWARDED_FOR')) ?
getenv('HTTP_X_FORWARDED_FOR') : getenv('REMOTE_ADDR');
}
And that’s it!
Was this article helpful?