Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Use real ip when proxy server is detected. Details »»
Use real ip when proxy server is detected.
Version: 2.13, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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.

Comments
  #232  
Old 06-09-2006, 06:48 AM
ubblite ubblite is offline
 
Join Date: Jan 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wondering if this will be updated to work with vb3.6.0 - I noticed the class_core.php file in 3.6.0 has changed.
Reply With Quote
  #233  
Old 06-10-2006, 06:07 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #234  
Old 06-11-2006, 02:32 AM
Sangrun Sangrun is offline
 
Join Date: May 2006
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and thank you!
Reply With Quote
  #235  
Old 06-16-2006, 05:59 AM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*clicks install*

Thanks!!!
Reply With Quote
  #236  
Old 06-17-2006, 09:29 PM
SupremeWeapon SupremeWeapon is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP 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);


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->ipaddress015));


Replace with ;

        
// Paul M - define session constants
        
define('SESSION_IDHASH'md5($_SERVER['HTTP_USER_AGENT'] . IPADDRESS));
        
define('SESSION_HOST',   substr(IPADDRESS015)); 
Reply With Quote
  #237  
Old 06-17-2006, 10:56 PM
ubblite ubblite is offline
 
Join Date: Jan 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
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.
Reply With Quote
  #238  
Old 06-17-2006, 11:23 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SupremeWeapon
isnt in the class_core.php for 3.5.4
I suggest you look again, because it's all there.
Reply With Quote
  #239  
Old 06-17-2006, 11:24 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ubblite
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.
Reply With Quote
  #240  
Old 06-18-2006, 01:37 AM
SupremeWeapon SupremeWeapon is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
I suggest you look again, because it's all there.

looking and not seeing. find can't even find it.


edit.. mmk found it.... going through a file line by line word by word isn't fun at all.


***Installed***
Reply With Quote
  #241  
Old 06-19-2006, 08:39 PM
jw00dy's Avatar
jw00dy jw00dy is offline
 
Join Date: Dec 2004
Location: Utah
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First off Great Hack, so thank you.

I am however, getting an error that I'm wondering if you can shed some light on?

I get these emailed to me every so often.
Quote:
Database error in vBulletin 3.5.4:

Invalid SQL:
INSERT INTO proxycache (ip, listed, dateline) VALUES ('24.225.90.201', 0, 1150736342);

MySQL Error : Duplicate entry '24.225.90.201' for key 1 Error Number : 1062
Date : Monday, June 19th 2006 @ 10:59:10 AM
Script : http://allthingsmoto.com/forums/index.php
Referrer : http://allthingsmoto.com/
IP Address : 24.225.90.201
Username : superrooster
Classname : vb_database
It looks like they are only stating that theirs a duplicate entry, but I'm not completely sure. That and they are somewhat annoying.

Any idea? TIA
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04621 seconds
  • Memory Usage 2,329KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete