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
  #12  
Old 09-21-2004, 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

Quote:
Originally Posted by Spinball
Paul - I've installed your hack as per the instructions, but I'm getting IP addresses being saved by proxy users in the post table such as
192.168.1.7, 82.
172.26.106.249,
unknown, 10.255.
10.20.5.2, 194.2

I'm regarding this is quite a serious error as IP information needs to be correct.

Please help!
Hi Spinball,

This problem is corrected in v1.1 - which has a better ip extraction and check.

The steps to update are in the new zip file.
Reply With Quote
  #13  
Old 09-21-2004, 03:50 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I'll keep an eye on it. For the bad IP addresses, I'll just edit out anything after the first 4 numbers and in the case of them having 'unknown' in the text I'll leave them blank. Do you agree with this course of action?
FYI I have installed this hack and the IP Info hack so my moderators can track down the morons causing trouble with duplicate registrations and proxys.
Reply With Quote
  #14  
Old 09-21-2004, 04:54 PM
mikeB's Avatar
mikeB mikeB is offline
 
Join Date: Dec 2001
Location: CT
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed Proxy Detector 3.0 to my VB 3.01 - and next to the IP button is _HacNho - it doesnt seem to be working, any idea what might cause this? thanks>!
Reply With Quote
  #15  
Old 09-21-2004, 05:36 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 Spinball
For the bad IP addresses, I'll just edit out anything after the first 4 numbers and in the case of them having 'unknown' in the text I'll leave them blank. Do you agree with this course of action?
Yes, if you really need to edit old records that are in error then that would work. I'm not sure it is worth the effort, depends on how many you have I suppose.

Quote:
Originally Posted by mikeB
I installed Proxy Detector 3.0 to my VB 3.01 - and next to the IP button is _HacNho - it doesnt seem to be working, any idea what might cause this? thanks>!
Well I didn't write that hack, but by the sound of it you have a small error in the postbit_ip template. Make sure you have copyied that part correctly.
Reply With Quote
  #16  
Old 09-21-2004, 06:59 PM
mikeB's Avatar
mikeB mikeB is offline
 
Join Date: Dec 2001
Location: CT
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M

Well I didn't write that hack, but by the sound of it you have a small error in the postbit_ip template. Make sure you have copyied that part correctly.
no Ive checked it 10 times - maybe this wont work w 3.0.1?
Reply With Quote
  #17  
Old 09-21-2004, 11:58 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 mikeB
no Ive checked it 10 times - maybe this wont work w 3.0.1?
Hmm, Well you are right, the postbit_ip template code in that proxy detector text file is a bit duff. I just took that hack, as was, and added it to my zip file assuming it was ok.

You could replace it with this which should work ok ;
PHP Code:
<if condition="$show['ip']">
    
$vbphrase[ip]: $post[ip
    <if 
condition="($post[proxyip] != '')">
        <
br>Proxy Detected Real IP$post[proxyip])
    </if>
<else />
    <if 
condition="($post[proxyip] != '')">
        <
a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]title="Proxy Server : $post[ip] - Real IP: $post[proxyip]border="0" /></a>
    <else />
        <
a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]title="$post[ip]border="0" /></a>
    </if>
</if> 
But it's a bit academic if you are applying my Hack, as part of mine replaces the postbit_ip template code again anyway.

Paul.
Reply With Quote
  #18  
Old 09-22-2004, 04:32 PM
nnjj.net nnjj.net is offline
 
Join Date: Dec 2002
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nothing change,
I did the change in postbit_ip
but nothing!
Reply With Quote
  #19  
Old 09-22-2004, 05:51 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 nnjj.net
nothing change,
I did the change in postbit_ip
but nothing!
Sorry, but you will have to be a little more specific.

What steps have you done, and what is the problem ?
Reply With Quote
  #20  
Old 09-26-2004, 06:35 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
I have some members that I know for certain are behind a proxy. however, this hack hasn't changed or added the second "red" comp in their posts.
I do believe that it is showing the correct IP, but now I can't see who else is behind a proxy.
If there is a proxy detected, will it tell me that a proxy was detected? I click the normal comp and it tells me the IP and the host, but not if they were behind a proxy.
On "who's online", nothing has changed either. All I see are the usernames,where they are currently on the site, and their IP address. Should i also see the host?
Reply With Quote
  #21  
Old 09-26-2004, 09:25 PM
integra99's Avatar
integra99 integra99 is offline
 
Join Date: Jun 2003
Location: Indiana
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iguanairs
Hello,
I have some members that I know for certain are behind a proxy. however, this hack hasn't changed or added the second "red" comp in their posts.
I do believe that it is showing the correct IP, but now I can't see who else is behind a proxy.
If there is a proxy detected, will it tell me that a proxy was detected? I click the normal comp and it tells me the IP and the host, but not if they were behind a proxy.
On "who's online", nothing has changed either. All I see are the usernames,where they are currently on the site, and their IP address. Should i also see the host?
Depends on if they are using a completly anonymous proxy, or just a regular proxy
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 02:26 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.05871 seconds
  • Memory Usage 2,330KB
  • 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_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
  • (3)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