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

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
  #52  
Old 10-16-2005, 07:27 PM
smdani smdani is offline
 
Join Date: Nov 2004
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Two both variables take IP and his DNS name. How can I take only IP number?
I want to generate a link like this below IP Address:
http://ws.arin.net/cgi-bin/whois.pl?...=200.96.73.211

I did it modifying the phrase thread_displayproxyip, and writing:
Code:
<a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput={1}">IP - Query WHOIS ARIN <br>
but generates a bad URL:
http://ws.arin.net/cgi-bin/whois.pl?...P.rima-tde.net
Reply With Quote
  #53  
Old 10-16-2005, 09:38 PM
FROGGYJ FROGGYJ is offline
 
Join Date: Sep 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hrm do we have to update all threads or anything? cause I installed fine, but ummm nothing has changed when I click on reveal IP.
Reply With Quote
  #54  
Old 10-16-2005, 10:14 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 smdani
Two both variables take IP and his DNS name. How can I take only IP number?
You can't unless you modify the code.

Quote:
Originally Posted by FROGGYJ
hrm do we have to update all threads or anything? cause I installed fine, but ummm nothing has changed when I click on reveal IP.
Nothing will change unless a proxy is detected at the time of posting, then the ip icon will be red and the extra details will be displayed if you click it.

It is not (and cannot ever be) retrospective.
Reply With Quote
  #55  
Old 10-16-2005, 10:25 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't proxy detection a standard in vB 3.5?
I thought I saw something like that in the source code of the freshly downloaded package.

EDIT: Yes, it is, and your hack says to replace some of that.
What is the difference between your detection and vB's detection?

EDIT: lol...
Quote:
define('SESSION_IDHASH', md5($_SERVER['HTTP_USER_AGENT'] . IPADDRESS)); // this should *never* change during a session
USER AGENT never change? I don't think so. Both IPADDRESS and USER AGENT can be changed in Opera without restarting the brower :P
Reply With Quote
  #56  
Old 10-17-2005, 03:34 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

Quote:
Originally Posted by Dark Visor
Isn't proxy detection a standard in vB 3.5?
No.

Nowhere in a default vb installation will you be able to see if a person is using a proxy server, or do anything with (or even know) their real ip address.

Quote:
Originally Posted by Dark Visor
EDIT: Yes, it is, and your hack says to replace some of that.
What is the difference between your detection and vB's detection?
That code (which btw is in all 3.0.x versions as well) attempts to detect the real ip (as ALT_IP) for the session hash, and that's it. It does absolutely nothing else with it whatsoever.

Quote:
Originally Posted by Dark Visor
EDIT: lol...

USER AGENT never change? I don't think so. Both IPADDRESS and USER AGENT can be changed in Opera without restarting the brower :P
Not really sure what your point is, that's a Jelsoft comment, not mine. I'd like to know how you change your ip address via a browser .......
Reply With Quote
  #57  
Old 10-17-2005, 05:45 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
That code (which btw is in all 3.0.x versions as well) attempts to detect the real ip (as ALT_IP) for the session hash, and that's it. It does absolutely nothing else with it whatsoever.
I understand. And what is the reason you added another constant?

Quote:
Not really sure what your point is, that's a Jelsoft comment, not mine. I'd like to know how you change your ip address via a browser .......
I know. Lol was directed at Jelsoft; IP can be changed via proxy that is specified within a browser.
Reply With Quote
  #58  
Old 10-18-2005, 07:24 AM
smdani smdani is offline
 
Join Date: Nov 2004
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Quote:
Originally Posted by smdani
Two both variables take IP and his DNS name. How can I take only IP number?
You can't unless you modify the code.
I'm thinking to define a new variable and save only the ip number. How can I do it?
Paul, may you help me?
Reply With Quote
  #59  
Old 10-22-2005, 12:41 PM
slowhand.chen slowhand.chen is offline
 
Join Date: Sep 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

use https connect vbb,the real ip can't not logged。
Reply With Quote
  #60  
Old 10-22-2005, 04:03 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 smdani
I'm thinking to define a new variable and save only the ip number. How can I do it?
Paul, may you help me?
The link you use will work fine as it is, ARIN picks out the IP address and ignores the rest - the example you gave does not work because the 200.x x x range is not controlled by ARIN, it's controlled by LACNIC
Reply With Quote
  #61  
Old 10-27-2005, 04:52 PM
exceem exceem is offline
 
Join Date: Sep 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed and working great, excelent hack

this should be a feature of vbulletin!
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 08:07 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.12066 seconds
  • Memory Usage 2,308KB
  • 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_code
  • (11)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