Version: 2.25, by Paul M
Developer Last Online: Nov 2023
Category: Administrative and Maintenance Tools -
Version: 3.6.x
Rating:
Released: 07-01-2006
Last Update: 11-24-2006
Installs: 633
DB Changes Uses Plugins Auto-Templates
Code Changes Translations
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 ......
Note: Obviously this hack relies on the proxy server passing the correct http variables to allow detection.
If a proxy is detected, then a red ip icon is displayed instead of the standard one. This mod will also detect if the ipinfo hack is installed and adjust itself to call the ipinfo code.
History:
v2.20 : Updated for vb 3.6. IP Info detection added. v2.21 : Dependancies updated for 3.6.0 Gold. v2.22 : Updated for Version Checking. v2.23 : Fixed bug causing wrong ip in WOL display. v2.24 : Rewritten slightly to fix a minor issue with spiders. v2.25 : Updated for changes in vB 3.6.4.
Remember that this modification involves changes to the class_core.php file - if you upgrade your vbulletin, you must reapply those changes.
Please do not post asking why this does not work with some proxy servers, the answer is already in the notes above, and also in Post #160.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Most of my members now display a red button and when I check it out this is displayed:
"The Proxy Server IP Address is: PROXYIP"
This is even displayed for myself and I sure am not on a proxy. How can I fix this?
The file edits instructions do no longer match vb 3.6.8's class_core.php's content.
Step 3:
Find:
PHP Code:
// define session constants define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . vB_Session::fetch_substr_ip($registry->alt_ip))); // this should *never* change during a session define('SESSION_HOST', substr($registry->ipaddress, 0, 15));
I assume that this would need to be replaced. But since I am no coder and it seems more has been altered in class_core.php's content, I am not certain.
I seem to have been working with an older version of the instructions. I have now applied the new instructions to vb 3.6.8, but this has not solved it. Do I need to wait for a cron job to be passed or is there something else I need to do?
I'm not sure what you mean isn't solved. If you have done the file edits correctly then new posts posts will now contain the correct data. Old posts will not be updated.
I am having som problems on 3.6.8 version, I cant find the code in step 2. in the class_core.php, so I dont know where to put replacmen code given in the instructions? Help!!!
THNX in front!
Missing code:
Code:
Find ;
// fetch client IP address
$registry->ipaddress = $this->fetch_ip();
define('IPADDRESS', $registry->ipaddress);
// attempt to fetch IP address from behind proxies - useful, but don't rely on it...
$registry->alt_ip = $this->fetch_alt_ip();
define('ALT_IP', $registry->alt_ip);
If you have the default class_core file for 3.6.8 then the code is there, perhaps your text editor is not searching properly, try just looking for "// fetch client IP address".