Version: 2.13, by Paul M
Developer Last Online: Nov 2023
Version: 3.5.x
Rating:
Released: 08-27-2005
Last Update: 05-14-2006
Installs: 294
No support by the author.
This modification is no longer available or supported.
This hack makes the forum always use the members real ip when a proxy is detected, meaning that all existing ip functions should continue to work, basically ignoring the proxy server (other than recording it's presence).
i.e.
* The real ip (or host) is displayed in the who's online page.
* The real and proxy server ip's are accesible for each post, the button is red for members using a proxy server.
* The real ip is searchable in the admin/mod cp (but not the proxy ip).
* The real ip can be banned by admins.
etc etc ......
Obviously this hack relies on the proxy server passing the correct http variables to allow detection. This hack is packaged as a vBulletin product.
History:
v2.12 : Template fix for px.gif. v2.13 : Minor changes, no update necessary.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
If a user is using a proxy, the Proxy IP is what is shown, especially for guests lurking.
Erm, no it isn't, if a real ip is detected, then it is shown. Try reading the description .....
Quote:
This hack makes the forum always use the members real ip when a proxy is detected, meaning that all existing ip functions should continue to work, basically ignoring the proxy server (other than recording it's presence).
i.e.
* The real ip (or host) is displayed in the who's online page.
* The real and proxy server ip's are accesible for each post, the button is red for members using a proxy server.
* The real ip is searchable in the admin/mod cp (but not the proxy ip).
Whatever that Guest is - it is (incorrectly) passing on 127.0.0.1 as it's "real" address, so the hack is (correctly) displaying it. There is a setting to tell the hack to ignore any real ip's that are in the private ranges (such as this one) - but you need to edit this setting in the hack code itself ;
in class_core.php find ;
PHP Code:
$ignoreprivate = false; // Set to true to ignore private 'real' ip's //
and change it to ;
PHP Code:
$ignoreprivate = true; // Set to true to ignore private 'real' ip's //
Paul...
There isn't a big difference between default fetch_alt_ip and yours.
Except yours never returns REMOTE_ADDR as alt_ip. But that's just one line of code, yet you change the whole function... why?
All you need to do is change:
$alt_ip = $_SERVER['REMOTE_ADDR'];
to
$alt_ip = $_SERVER['HTTP_FORWARDED'];
Tell me if I am wrong.
Secondly, what's the need for defining PROXYIP? There is a constant ALT_IP, why not use that?