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
  #162  
Old 01-15-2006, 03:33 PM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
It *is* correct, but is not what is being displayed, you must have a language specific translation or something.
Thank you Paul, you were correct that it was a phrase problem but the phrase that needed to be changed was thread_displayip not thread_displayproxyip.

Don't know what IP mod I had been using but looks like it was yours and at least one other.

Thanks again!

PS: Would you happen to know why my online.php returns a blank page?

I have created a new style using the default template - and confirmed that the headers are default version 3_5_2 so that should eliminate that as a possible reason and I confirmed no spaces at the very beginning and at the end...... I reuploaded the online.php and view online is turned on for admins only but I still get a blank page.

This is driving me nuts... any ideas and where to look?
Reply With Quote
  #163  
Old 01-23-2006, 05:29 PM
teedizz teedizz is offline
 
Join Date: Jan 2004
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason it doesnt seem to be working. I had a user register & post with a proxy. I checked his i.p. & this is what came up:

The IP Address is: 205.134.241.50. The host name is: 205.134.241.50.

^^ thats a proxy

His REAL I.P. is

The IP Address is: 66.**.***.**. The host name is: cpe-66-**-***-**.hawaii.res.rr.com

Then I checked my i.p. addy & it looked like this

The IP Address is: 70.**.***.***. The host name is: ontario-ca-cuda3-70-**-***-***.ontrca.adelphia.net.

So why are proxy's showing up how they do & not telling me what his true I.P. really was? Am I looking in the wrong plcae cause all im doing is clicking the i.p. address icon in the users post.
Reply With Quote
  #164  
Old 01-23-2006, 07:22 PM
IrPr IrPr is offline
 
Join Date: Mar 2005
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack, Installed but ...
got some error on apache error logs
Quote:
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_FROM in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2051
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_FORWARDED in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2052
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_CLIENT_IP in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2053
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2054
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined variable: alt_ip in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 2055
[Mon Jan 23 15:57:34 2006] [error] [client 213.149.***.***] PHP Notice: Undefined index: HTTP_REFERER in /home/httpd/vhosts/domain.com/subdomains/forum/httpdocs/includes/class_core.php on line 1578
vB 3.5.3 on Linux Fedoracore II
Reply With Quote
  #165  
Old 01-23-2006, 07: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 teedizz
For some reason it doesnt seem to be working. I had a user register & post with a proxy. I checked his i.p. & this is what came up:

<snip>

So why are proxy's showing up how they do & not telling me what his true I.P. really was? Am I looking in the wrong plcae cause all im doing is clicking the i.p. address icon in the users post.
Sorry, I'm not really understanding you, but I assume you read this on the main post ;

Quote:
Obviously this hack relies on the proxy server passing the correct http variables to allow detection
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).
Reply With Quote
  #166  
Old 01-23-2006, 07:44 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 Moosa
Nice Hack, Installed but ...
got some error on apache error logs

vB 3.5.3 on Linux Fedoracore II
Those are just PHP notices, nothing to worry about.
Reply With Quote
  #167  
Old 01-25-2006, 07:36 PM
DannyITR DannyITR is offline
 
Join Date: Jan 2002
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I spent quite a bit of time searching for the lines in class_core.php. The instructions didn't even list them in chronological order. Here is the info if you wanted to update the readme.

Modification number:

1) code found on line 2042
2) code found on line 1539
3) code found on line 1574
Reply With Quote
  #168  
Old 01-25-2006, 08: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

Putting line numbers is never a good idea, they can change in each version of vb, and also if member has edited the file for other hacks. Any decent text editor will find the code in seconds using a search.
Reply With Quote
  #169  
Old 01-26-2006, 04:48 PM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're the master, Paul :up:
Reply With Quote
  #170  
Old 01-28-2006, 08:16 PM
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
Location: United Kingdom!
Posts: 954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whats the code for the post bit?? im using a element skin, and that image doesnt seem to show up for me??.. im not sure if an image ment to show up but whats

px.gif for thn?

also when trying to search for an IP... it doesnt work?? am i ment to search in the same place? i've tested with my own IP.. to make sure IP is correct when searching. thanks
Reply With Quote
  #171  
Old 01-31-2006, 07:55 AM
PIKenPIK PIKenPIK is offline
 
Join Date: Feb 2005
Location: Netherlands
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We're in ..... PnP clicks install!!

Thank you!
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:36 PM.


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.04650 seconds
  • Memory Usage 2,313KB
  • 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
  • (6)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