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
  #92  
Old 02-13-2011, 07:40 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 Bacon Butty View Post
Facts?
Yes, Facts.

Quote:
Originally Posted by Bacon Butty View Post
stop being so defensive
People (including you) screw up the edit, mostly its not their fault, its their editor thats at fault. Most people accept this, fix it, and all is ok. You decide to be argumentative and try to make out its the fault of the mod. If pointing out you are wrong is being "defensive" then so be it.

Quote:
Originally Posted by Bacon Butty View Post
consider for a moment it's not the ineptness of the person performing the simple file edit and get of the pedestal
I dont need to consider it, after 6+ years I know the reason is a bad edit. It isnt the mod, if it were id know [and fix it] - the FACT is that if you do it all correctly, it works every time. Simple as that. Hell, it'll even work for posts [only] without the edit. I suggest you stop making foolish claims.
Reply With Quote
  #93  
Old 02-13-2011, 11:17 PM
onehost onehost is offline
 
Join Date: Jul 2006
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been having the same class core errors everyone else is having.
I have tried 3 different editors with zero success. looks nice if it worked,
but I just do not have time to nurse this by having to look for a special editor....
Reply With Quote
  #94  
Old 02-13-2011, 11:34 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 onehost View Post
I have been having the same class core errors everyone else is having.
I have tried 3 different editors with zero success. looks nice if it worked,
but I just do not have time to nurse this by having to look for a special editor....
Im starting to get somewhat tired of people making false posts, so Im just going to remove them in future.

For the last time, it works fine and "everyone else" is not having an issue, just those who use an editor that breaks the file (something that seems to be more common in recent times, no doubt due to more modern text editors adding the BOM by default). If you dont want to spend time finding one that works then thats fine, your choice, but dont go making false accusations about other peoples work.
Reply With Quote
  #95  
Old 02-14-2011, 12:06 AM
onehost onehost is offline
 
Join Date: Jul 2006
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Im starting to get somewhat tired of people making false posts, so Im just going to remove them in future.

For the last time, it works fine and "everyone else" is not having an issue, just those who use an editor that breaks the file (something that seems to be more common in recent times, no doubt due to more modern text editors adding the BOM by default). If you dont want to spend time finding one that works then thats fine, your choice, but dont go making false accusations about other peoples work.
I guess you can take it how you like. There is nothing false about what I
said, and at no point did I ever accuse your mod being the problem. I explained
how I tried to solve the issue by using 3 editors, did not work...I am not
blaming your mod, and i actually understand what you are saying about
how the error is produced by saving the file, and the save produced not
so desirable results...but my attempts to cure the problem by using 3
different editors have failed, and I have to move on...

and to be honest, I would just rather ban the proxies, then convert them...
other then from govt/school/work, etc...the only legit reason for a proxy is to hide...
or to bypass so that you can hide yourself either way....I just can not think of any
legit reasons why proxies should even exist...

I have two members on my forum that seem to appear on the forum at almost the
same time together...and guess why, they hide behind proxies, why? I know for
a fact that one of them is a spammer...he is scared to post because he knows
I will kick him off...I am still not so sure why he even hangs around....those
two members do not contribute anything to the forum at all....but they
keep logging on and doing nothing....There is mostly one reason for a
proxy, and most of the time it does not turn out to be a very good reason.

once again, i am not blaming your mod....
Reply With Quote
  #96  
Old 02-14-2011, 12:20 AM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I personally use NotePad++ (its freeware and small) to edit any and all my PHP files.
http://notepad-plus-plus.org

I would think that if you still have a problem with this modification AFTER using NotePad++ ... Either you copy & pasted the code incorrectly or there is an outside conflict with something you already have installed.

Paul M's modification seems to work with the majority of those who apply it and as suggested... It could be your editor.

Try using NotePad++ to not only edit the file, but to copy & past from the directions.
Reply With Quote
  #97  
Old 02-14-2011, 12:39 AM
onehost onehost is offline
 
Join Date: Jul 2006
Posts: 378
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OldSchoolDSL View Post
I personally use NotePad++ (its freeware and small) to edit any and all my PHP files.
http://notepad-plus-plus.org

I would think that if you still have a problem with this modification AFTER using NotePad++ ... Either you copy & pasted the code incorrectly or there is an outside conflict with something you already have installed.

Paul M's modification seems to work with the majority of those who apply it and as suggested... It could be your editor.

Try using NotePad++ to not only edit the file, but to copy & past from the directions.
Thanks

Ill give it a whirl when I have more free time.
Reply With Quote
  #98  
Old 02-14-2011, 03:57 PM
Bacon Butty Bacon Butty is offline
 
Join Date: Jun 2005
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OldSchoolDSL View Post
I personally use NotePad++ (its freeware and small) to edit any and all my PHP files.
http://notepad-plus-plus.org

I would think that if you still have a problem with this modification AFTER using NotePad++ ... Either you copy & pasted the code incorrectly or there is an outside conflict with something you already have installed.

Paul M's modification seems to work with the majority of those who apply it and as suggested... It could be your editor.

Try using NotePad++ to not only edit the file, but to copy & past from the directions.
Thanks mate - I use NotePad myself. It's a very simple edit, one I repeated numerous times on a fresh file with two different editors (notepad and phpeditor) to check I wasn't losing the plot. It didn't work & it wasn't the edit or the editor. Odd. But thanks for the suggestion, it may come in handy for someone.
Reply With Quote
  #99  
Old 03-05-2011, 07:47 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those of us who do simply copy & paste code... I did notice a small type error (if you want to call it that).

For example

PHP Code:

Should not end with a space at the end of it.

If you are simply coping and pasting, please be sure to remove the little space (think I found 2) at the end of the code.

I'm not sure if I've done a good example of explaining this.

I think Paul M has done a wonderful job at developing this modification.

Tested and working

4.1.2
Reply With Quote
  #100  
Old 03-05-2011, 09:41 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 OldSchoolDSL View Post
Should not end with a space at the end of it.
Why ?

Quote:
Originally Posted by OldSchoolDSL View Post
If you are simply coping and pasting, please be sure to remove the little space (think I found 2) at the end of the code.
There really is no reason to do this - PHP doesnt care about spaces (or tabs).
Reply With Quote
  #101  
Old 03-05-2011, 10:57 PM
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Posts: 1,196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Why ?



There really is no reason to do this - PHP doesnt care about spaces (or tabs).
That has not been my own experience. But I could be explaining it wrong.
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:09 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.14889 seconds
  • Memory Usage 2,326KB
  • 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
  • (10)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
  • (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