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.
// 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);
Replace with ;
// Paul M - Fetch client IP address & Proxy server address if detected
$registry->ipaddress = $this->fetch_ip();
$registry->alt_ip = $this->fetch_alt_ip();
define('ALT_IP', $registry->ipaddress);
if ($registry->alt_ip == '')
{
define('PROXYIP', '');
define('IPADDRESS', $registry->ipaddress);
}
else
{
define('PROXYIP', $registry->ipaddress);
define('IPADDRESS', $registry->alt_ip);
}
isnt in the class_core.php for 3.5.4
neither is
PHP Code:
Find ;
// define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . $registry->alt_ip)); // this should *never* change during a session
define('SESSION_HOST', substr($registry->ipaddress, 0, 15));
Replace with ;
// Paul M - define session constants
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . IPADDRESS));
define('SESSION_HOST', substr(IPADDRESS, 0, 15));
This hack is a core part of Cable Forum, so Yes, it will be updated (if any changes are required) to work on 3.6.
Perhaps this hack already works with vb3.6 beta, but when I was looking for the text to replace in class_core.php the text to be replaced wasn't matching up with the readme file, although it was very close but I just didn't want to risk erasing and replacing the wrong code.
Perhaps this hack already works with vb3.6 beta, but when I was looking for the text to replace in class_core.php the text to be replaced wasn't matching up with the readme file, although it was very close but I just didn't want to risk erasing and replacing the wrong code.
It will work fine, but the code to look for has changed slightly (and the changes will be slightly different) - as I said, I will do a 3.6 version, but not atm, we are still only on beta 2.