Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Proxy to Real IP Conversion Details »
Proxy to Real IP Conversion
Mod Version: 4.2.0.1, by Paul M (Member) Paul M is offline
Developer Last Online: Jan 2018 I like it Show Printable Version Email this Page

This thread is in the Modification Graveyard.
vB Version: 4.2.x Rating: (56 votes - 4.75 average) Installs: 686
Released: 02 Jan 2010 Last Update: 04 Jan 2015 Downloads: 4284
Not Supported DB Changes Uses Plugins Auto-Template Code Changes Translations  


--------------------------------------------------------------------------------
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.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	PRC1.jpg
Views:	3653
Size:	20.9 KB
ID:	108792   Click image for larger version

Name:	PRC2.PNG
Views:	4655
Size:	11.7 KB
ID:	108793  

Show Your Support

  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Administrative and Maintenance Tools Proxy IP to Real IP Conversion Paul M Modification Graveyard 153 13 Jun 2014 21:09
Administrative and Maintenance Tools Proxy IP to real IP conversion Paul M Modification Graveyard 152 20 Feb 2011 23:46
Administrative and Maintenance Tools Proxy to Real IP Conversion Paul M Modification Graveyard 459 07 Apr 2009 22:26
Proxy ip to real ip conversion Paul M Modification Graveyard 236 27 Jan 2007 05:25

  #61  
Old 06 Dec 2010, 16:22
Flying Gremlin Flying Gremlin is offline
 
Join Date: Mar 2008
Real name: Adam
Installed the 4.1.0 with the installation instructions in the included text file. After this, it broke the admin panel. All I get is this on the page where it used to be:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Had to upload the default class_core.php file in order to fix. Unfortunately, I am a relative novice when it comes to troubleshooting code, so I can't give you any additional insight.

Last edited by Flying Gremlin; 06 Dec 2010 at 16:50.
Reply With Quote
  #62  
Old 06 Dec 2010, 19:35
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
The editor you are using is corrupting the file, you need to use a proper text editor (notepad would be fine).
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #63  
Old 06 Dec 2010, 23:24
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Can you update it without re-uploading the images?
__________________
My Mods:
Missing Images
Styles:
Hell Eye Shock
Reply With Quote
  #64  
Old 07 Dec 2010, 04:29
Flying Gremlin Flying Gremlin is offline
 
Join Date: Mar 2008
Real name: Adam
Originally Posted by Paul M View Post
The editor you are using is corrupting the file, you need to use a proper text editor (notepad would be fine).
Notepad is my text editor of choice and the only one I use.
Reply With Quote
  #65  
Old 08 Dec 2010, 07:13
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Real name: Jeremy
Originally Posted by Flying Gremlin View Post
Installed the 4.1.0 with the installation instructions in the included text file. After this, it broke the admin panel. All I get is this on the page where it used to be:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Had to upload the default class_core.php file in order to fix. Unfortunately, I am a relative novice when it comes to troubleshooting code, so I can't give you any additional insight.
I had the same issue with this mod that I posted here which eventually led to him giving me an answer that was not helpful on how to resolve it.
__________________
Global Gamers
My Modifications

Last edited by SuperTaz; 08 Dec 2010 at 07:20.
Reply With Quote
  #66  
Old 08 Dec 2010, 07:45
Vikingant Vikingant is offline
 
Join Date: Aug 2010
Originally Posted by Paul M View Post
If that were the case, this thread would be full of posts about a fault.

Im afraid I would say its down to a mistake being made by yourself.
I am getting the same probems. I crashed when I first tried. I tried again and the ACP worked fine but the rest of the site although still essentially functioning was all over the place.

I guess I am just not meant to use this mod


Edit to add: We are changing the file /includes/class_core.php right? Just making sure there isnat another instance somewhere I should be looking for. I did see one under /mgc_cb_evo/classes/class_core.php. Might that be upsetting it?

Last edited by Vikingant; 08 Dec 2010 at 07:51.
Reply With Quote
  #67  
Old 08 Dec 2010, 12:21
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by Fungsten View Post
Can you update it without re-uploading the images?
Yes.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #68  
Old 08 Dec 2010, 12:32
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Originally Posted by Flying Gremlin View Post
Notepad is my text editor of choice and the only one I use.
Then notepad is adding them. They are known as the Byte Order Mark (or BOM) and bacically get added to signal the file is utf-8 format. PHP cannot handle them. You need to either use an editor that doesnt add them, or find out how to edit/save files in notepad without it adding them.

Originally Posted by Vikingant View Post
Edit to add: We are changing the file /includes/class_core.php right? Just making sure there isnat another instance somewhere I should be looking for. I did see one under /mgc_cb_evo/classes/class_core.php. Might that be upsetting it?
You are changing the correct file, no idea what the other file is, looks like some kind of modification supplied file.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #69  
Old 08 Dec 2010, 22:50
Vikingant Vikingant is offline
 
Join Date: Aug 2010
mgc_cb_evo is a shout box i once had installed but never removed the file. I have now removed it and things improved somewhat but still get the 'raw' pages here and there. Have had to uninstall completely. Great concept tho.
Reply With Quote
  #70  
Old 12 Dec 2010, 09:37
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Real name: Adam H.
Originally Posted by OldSchoolDSL View Post
Nope, didn't work. Uninstalled.

Was an odd issue. When clicking the link "Who's online" ... I would get almost a blank page (just the styles / themes background page)

4.0.8 SP2
INSTALLED

You're update seems to have corrected this error (odd little bug).

Not sure if its working yet as I've yet to see anyone with a proxy
Reply With Quote
  #71  
Old 07 Jan 2011, 17:44
Sforums Sforums is offline
 
Join Date: Dec 2010
Tried on 4.0.1 PL2 and got this error:

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:1) in [path]/includes/functions.php on line 3879
Reply With Quote
  #72  
Old 08 Jan 2011, 00:04
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
I think you mean 4.1.0 PL2.

The error means you broke the edited file, I would guess you used an editor that corrupted the file by adding the UTF marker at the start of it (see post #68).
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #73  
Old 09 Jan 2011, 12:10
Sforums Sforums is offline
 
Join Date: Dec 2010
Originally Posted by Paul M View Post
I think you mean 4.1.0 PL2.

The error means you broke the edited file, I would guess you used an editor that corrupted the file by adding the UTF marker at the start of it (see post #68).
Yes, 4.1.0 PL2.

I tried again and got even more severe error. This is how my modifyed class_core.php looks like (attachment)

Where did I go wrong?

Last edited by Paul M; 09 Jan 2011 at 12:33.
Reply With Quote
  #74  
Old 09 Jan 2011, 12:35
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Ive removed the attachment as you are not permitted to upload entire vb files.

Your issue is exactly what I said - your editor has added the BOM bytes at the start of the file.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #75  
Old 10 Jan 2011, 10:49
Sforums Sforums is offline
 
Join Date: Dec 2010
Thanks Paul, it works now.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 21:21.

Layout Options | Width: Wide Color: