Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Proxy to Real IP Conversion Details »»
Proxy to Real IP Conversion
Version: 4.2.0.1, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.2.x Rating:
Released: 01-01-2010 Last Update: 01-03-2015 Installs: 686
DB Changes Uses Plugins Auto-Templates
Code Changes Translations  
No support by the author.


--------------------------------------------------------------------------------
This modification has been withdrawn.
vBulletin 4.0.x and 4.1.x are no longer supported.

For vBulletin 4.2.x please use the built in reverse proxy detection.
--------------------------------------------------------------------------------


This hack makes the forum always use the members real ip if 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).

For example ;

* The real ip 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.

Note: This hack relies on the proxy server passing the correct http variables to allow detection.
If they are not passed then detection will not work. By definition, annonymous proxies do not pass on these variables.


If a proxy is detected, then a red ip icon is displayed instead of the standard one.

To install, download and unzip the files and follow the instructions in the text file.

This modification involves changes to the class_core.php file - if you upgrade your vbulletin, you must reapply those changes.
If you forget these edits, the modification will continue to work for forum posts only (v4.0.4 +).



History:

v4.0.1 : 02-Jan-2010 : Initial release for vb 4.0.0 Gold.
v4.0.2 : 04-Jan-2010 : Added check for invalid alt ip address.
v4.0.3 : 13-Jan-2010 : Minor change to cope better when people forget the class_core file edits.
v4.0.4 : 15-Jan-2010 : Further changes to process forum posts when people forget the class_core file edits.
v4.0.5 : 20-Feb-2010 : Internal update, not released.
v4.0.6 : 27-Feb-2010 : Style code updates for vB 4.0.2.
v4.0.7 : 30-Oct-2010 : Style code updated to work when css stored as files.

v4.1.0 : 04-Dec-2010 : Updated for vBulletin 4.1.x

v4.1.7.0 : 16-Oct-2011 : Updated for vBulletin 4.1.7.
v4.1.8.0 : 18-Nov-2011 : Updated for vBulletin 4.1.8.

v4.2.0.0 : 24-May-2012 : Updated for vBulletin 4.2.0.
v4.2.0.1 : 02-Jan-2015 : Updated for Cloudflare Changes.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 08-19-2012, 07:58 AM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Turned cloudflare off. it was sending alot of spammers



it was showing this . then it went back to all showing cloudflares ips. so dont know if it works or not...
Reply With Quote
  #173  
Old 09-05-2012, 02:28 AM
fasters fasters is offline
 
Join Date: Aug 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working for me.
I have follow the instruction, but nothing change.
what should I do?
Reply With Quote
  #174  
Old 09-07-2012, 11:19 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could start by explaining what you mean by "but nothing change".

What didnt change that you were expecting ?
Reply With Quote
  #175  
Old 09-16-2012, 12:14 PM
jpierce jpierce is offline
 
Join Date: Jul 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed as directed, including the edits to class_core but I still only see the Cloudflare IPs.

What steps can I take to debug the issue?

Thanks!

John
Reply With Quote
  #176  
Old 09-16-2012, 12:34 PM
jpierce jpierce is offline
 
Join Date: Jul 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I seemed to have fixed it by installing mod_cloudflare on the server.
Reply With Quote
  #177  
Old 09-28-2012, 02:24 AM
jasff jasff is offline
 
Join Date: Oct 2011
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey gang, I am a brand new VB forum owner. I have a new site. Although new, I have been a VB moderator for several years, with some Admin access. I'm on a crash course of learning. Have completed a lot of tasks.

I am very interested in this mod. I've never done a mod before and wanted to know how easy this is? I know instructions are attached in the download. Just curious what level of difficulty this mod is?

Thanks in advance.
Reply With Quote
  #178  
Old 09-28-2012, 12:48 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

Its quite simple, one product to install, one (optional) file edit.
Reply With Quote
  #179  
Old 10-01-2012, 05:20 AM
MG Zebra MG Zebra is offline
 
Join Date: Sep 2012
Location: So-Cal
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure if you've included this information in the other versions of this modification but it would be greatly appreciated if you included where the class_core.php file was for future reference instead of having people need to search through 5 pages of comments until someone has asked about it. I'm referring to version 4200. I'm new to the vb file system so I had no clue where it was at. I'll be installing this to see if it works for me.
Reply With Quote
  #180  
Old 10-18-2012, 03:24 PM
mat8861 mat8861 is offline
 
Join Date: Sep 2011
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Imported the product, installed the icon Did the mod to /includes/class_core.php:

PHP Code:
        // set debug mode
        
$this->debug = !empty($this->config['Misc']['debug']);
        
define('DEBUG'$this->debug);

        
$proxy false;
        if (isset(
$this->config['Misc']['proxyiplist']))
        {
            
$proxylist array_map('trim'explode(','$this->config['Misc']['proxyiplist'])); 

            if (
in_array($this->ipaddress$proxylist))
            {
                
$proxy true;
                if (isset(
$this->config['Misc']['proxyipheader']) 
                AND isset(
$_SERVER[$this->config['Misc']['proxyipheader']]))
                {
                    
$altip $_SERVER[$this->config['Misc']['proxyipheader']];
                    if (
$this->input->filter_ip($altip))
                    {
                        
$this->alt_ip $altip;
                    }
                }
            }
        }
        
// Detect ALL.
        
if ($registry->ipaddress == $registry->alt_ip)
        {
            
define('PROXYIP',''); 
        }
        else
        {
            
$proxy true;
            
define('PROXYIP',$registry->ipaddress);
        }

        if (
$proxy)
        {
            
define('ALT_IP'$this->ipaddress);
            
define('IPADDRESS'$this->alt_ip);
        }
        else
        {
            
define('IPADDRESS'$this->ipaddress);
            
define('ALT_IP'$this->alt_ip);
        }
        
        
define('SESSION_HOST',   substr(IPADDRESS015));
    }

    
/**
    * Takes the contents of an array and recursively uses each title/data
    * pair to create a new defined constant.
    */ 
Tried to login thru couple anonimous proxy ips (61.135.209.203:81 and 89.248.168.139:8080)...no "red" ip

Reply With Quote
  #181  
Old 10-18-2012, 08:55 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 mat8861 View Post
Tried to login thru couple anonimous proxy ips (61.135.209.203:81 and 89.248.168.139:8080)...no "red" ip

As it says (in bold) in the first post ;
Quote:
Note: This hack relies on the proxy server passing the correct http variables to allow detection. If they are not passed then detection will not work.
By definition, annonymous proxies do not pass on these variables.
Reply With Quote
Reply

Thread Tools

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 04:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07722 seconds
  • Memory Usage 2,341KB
  • 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
  • (1)bbcode_php
  • (2)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
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (13)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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