Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Proxy ip to real ip conversion Details »»
Proxy ip to real ip conversion
Version: 1.32, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.x Rating:
Released: 09-09-2004 Last Update: 05-28-2005 Installs: 161
 
No support by the author.

This modification is no longer available or supported.

A simple modification I did for our forum that was originally based on the Proxy Detector Hack (v3.0). Obviously, like all proxy server detection hacks, this will only work if the proxy server passes the appropiate http variables.

This hack makes the forum always use the members real ip when a proxy is detected, meaning that all existing ip functions continue to work, basically ignoring the proxy server (other than recording it's presence).

i.e.

* The real ip/host is displayed in who's online

* The real and proxy server ip's are accesible for each post, the button is red for members using a proxy.

* The real ip is searchable in the admin/mod cp, not the proxy ip.

* The real ip is bannable by admins (no moving to another proxy to avoid a ban).

etc etc.

The installation should take about 10-15 mins (4 file edits, 2 phrase changes, 1 new template, 1 sql query, 1 new image).

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
CarpCharacin

Comments
  #82  
Old 01-13-2005, 11:22 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 Eagle Creek
I had but not anymore, I guess I did something wrong with the install..
So have you installed this ? If so then might I ask you to click on the relevant install link to indicate you have done so.
Reply With Quote
  #83  
Old 01-13-2005, 04:19 PM
ToastBusters ToastBusters is offline
 
Join Date: Dec 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey guys,

I just *barely* installed my copy of vb last night, so I have a few complete newbie questions for you guys.

First, the modification has this:

PHP Code:
Add the following phrase "thread_displayproxyip" 
How do I go about doing that? Second:

PHP Code:
Replace the template "postbit_ip"
Do I do that by editing a file or making changes in the admin cp?

Finally, is it permissible to create a second "test" board that only I have access to so I can test mods before making them live? It's not your competence in creating the mods that concerns me, only my own ability to impliment them.

Thanks!
Reply With Quote
  #84  
Old 01-13-2005, 04:30 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ToastBusters
Hey guys,

I just *barely* installed my copy of vb last night, so I have a few complete newbie questions for you guys.
You may want to read up a bit before adding any hacks, etc., and start off with some simple ones (look in the minor mods section)
Quote:
First, the modification has this:

PHP Code:
Add the following phrase "thread_displayproxyip" 
How do I go about doing that?
In the admin CP -> languages & phrases -> Phrase Manager -> Add New Phrase

Quote:
PHP Code:
Replace the template "postbit_ip"
Do I do that by editing a file or making changes in the admin cp?
all template changes are done via the style manager in the admin CP
Quote:
Finally, is it permissible to create a second "test" board that only I have access to so I can test mods before making them live? It's not your competence in creating the mods that concerns me, only my own ability to impliment them.
yes, you can have one, but it must be not available to the public (ie: closed) and it must be named "vbtest," and located on the same server, etc..
Reply With Quote
  #85  
Old 01-14-2005, 12:15 AM
ToastBusters ToastBusters is offline
 
Join Date: Dec 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[quote]yes, you can have one, but it must be not available to the public (ie: closed) and it must be named "vbtest," and located on the same server, etc..[/quote

I can't imagine doing it any other way.

Thanks man, just what I wanted to know! I've done extensive hacks on a phpbb before this, but on that software it's just follow the instructions and replace code. I don't think I've ever had to do anything in the control panel.
Reply With Quote
  #86  
Old 01-16-2005, 03:23 PM
charlesk charlesk is offline
 
Join Date: Nov 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I just tested this hack using two different proxies. The first time, it detected the proxy but got the real IP address wrong, and the second time it didn't detect it at all. Any suggestions?

It does seem to be working for some proxies. Install clicked; thanks.

Charles
Reply With Quote
  #87  
Old 01-16-2005, 05:08 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

charlesk ,

that's completely normal anonymous do not pass the variables this hack uses ... that's why it is called "anonymous" for example an anonymous proxy won't pass "HTTP_X_FORWARDED_FOR" <<-- you'll see the anonymous proxy ip here instead.

anyway i'm having a problem with this hack it's operation works fine but if i click the image to get the ipadress vbulletin tells me "couldn't find the phrase "thread_displayproxyip" althrough the phrase is there and i'm sure i didn't make any typos while editing postings.php (phrasetype GLOBAL)

PHP Code:
$postinfo['proxyhost'] = @gethostbyaddr($postinfo['proxyip']);
    if(
$postinfo['proxyip'] !='')
    {
        eval(
print_standard_error('thread_displayproxyip'10));
    } 
attached two images one shows that the hack is working correctly the second image is a little proof the phrase is there now the question is what do i do about it ?
Reply With Quote
  #88  
Old 01-16-2005, 07:42 PM
charlesk charlesk is offline
 
Join Date: Nov 2004
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Delphi: you need to make the phrase a Front End Error phrase rather than a global. That happened to me as well, I hope Paul will fix the instructions.

As for the anon proxy issue... it doesn't seem to even work for AOL proxies, which is unfortunate.

c
Reply With Quote
  #89  
Old 01-16-2005, 07: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 charlesk
Delphi: you need to make the phrase a Front End Error phrase rather than a global. That happened to me as well, I hope Paul will fix the instructions.
Oops, I completely forgot to update them. I'll do it now.
Reply With Quote
  #90  
Old 01-16-2005, 07:50 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 charlesk
As for the anon proxy issue... it doesn't seem to even work for AOL proxies, which is unfortunate.
Yes, it will only work with proxy servers that actually pass the correct http variables. There is nothing anyone can do about that.
Reply With Quote
  #91  
Old 01-16-2005, 08:34 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm strange now i'm getting the global variables names as result

IPADDRESS and PROXYIP looks like it passed or something i can't find anything wrong with it
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 01:01 AM.


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.04967 seconds
  • Memory Usage 2,327KB
  • 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
  • (5)bbcode_php
  • (7)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
  • (1)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