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
  #142  
Old 12-23-2005, 06:59 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

not really sure what you mean, who's online already shows ip addresses.
Reply With Quote
  #143  
Old 12-23-2005, 10:55 PM
The Ottoman The Ottoman is offline
 
Join Date: Nov 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
not really sure what you mean, who's online already shows ip addresses.
If a user is using a proxy, the Proxy IP is what is shown, especially for guests lurking. Your hack only works if people post, not lurk.
Reply With Quote
  #144  
Old 12-23-2005, 11:45 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 The Ottoman
If a user is using a proxy, the Proxy IP is what is shown, especially for guests lurking.
Erm, no it isn't, if a real ip is detected, then it is shown. Try reading the description .....

Quote:
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 ......
Reply With Quote
  #145  
Old 12-28-2005, 12:13 AM
The Ottoman The Ottoman is offline
 
Join Date: Nov 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
Erm, no it isn't, if a real ip is detected, then it is shown. Try reading the description .....
Correct...this is what is done (and most excellently, I might add) for members. However, it *doesn't* work for Guests.

I've attached a picture to make myself a bit more clear:

Reply With Quote
  #146  
Old 12-28-2005, 11:40 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

Whatever that Guest is - it is (incorrectly) passing on 127.0.0.1 as it's "real" address, so the hack is (correctly) displaying it. There is a setting to tell the hack to ignore any real ip's that are in the private ranges (such as this one) - but you need to edit this setting in the hack code itself ;

in class_core.php find ;

PHP Code:
        $ignoreprivate false// Set to true to ignore private 'real' ip's // 
and change it to ;

PHP Code:
        $ignoreprivate true// Set to true to ignore private 'real' ip's // 
Reply With Quote
  #147  
Old 12-31-2005, 12:29 AM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've done everything correct, but when I try to import the product it gives me a blank page (within the frameset). Any ideas?

Thanks -vissa
Reply With Quote
  #148  
Old 12-31-2005, 12:35 AM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind I just had to wait long enough.. However, I have another question.

Does this work with the
ipinfo mod below?
https://vborg.vbsupport.ru/showthrea...ghlight=ipinfo

Thanks -vissa
Reply With Quote
  #149  
Old 12-31-2005, 01:11 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

If you read the thread for that hack you will find out (go back a page or two).
Reply With Quote
  #150  
Old 12-31-2005, 09:26 AM
firstrebel's Avatar
firstrebel firstrebel is offline
 
Join Date: Dec 2005
Location: West London
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*clicks install*

Bob
Reply With Quote
  #151  
Old 12-31-2005, 11:41 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul...
There isn't a big difference between default fetch_alt_ip and yours.
Except yours never returns REMOTE_ADDR as alt_ip. But that's just one line of code, yet you change the whole function... why?

All you need to do is change:
$alt_ip = $_SERVER['REMOTE_ADDR'];
to
$alt_ip = $_SERVER['HTTP_FORWARDED'];
Tell me if I am wrong.

Secondly, what's the need for defining PROXYIP? There is a constant ALT_IP, why not use that?

Interstinly enough, vB does not use ALT_IP at all

I would do it like this:
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 07:03 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.04631 seconds
  • Memory Usage 2,314KB
  • 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
  • (4)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
  • (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