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

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
  #22  
Old 09-26-2004, 10:59 PM
DeMiNe0 DeMiNe0 is offline
 
Join Date: Jun 2004
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whatproxy can i use to test this?
Reply With Quote
  #23  
Old 09-27-2004, 03:43 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 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?
See https://vborg.vbsupport.ru/showpost....85&postcount=9 for the first bit.

For who's online, it is an option (in Admin CP) to turn on host display, but this still relies on there actually being a reverse dns lookup record for the ip (which is nothing to do with me )
Reply With Quote
  #24  
Old 10-03-2004, 09:45 AM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Paul. Yesterday I installed Proxy Detector v3.1 - for Posts and WOL which also allows you to see the Proxy IP address and Real IP address in Who's Online when User Agent info is displayed.

I think I discovered a bug afterwards in relation to the Revert function which caused my Whosonline template to disappear. I explained what happened in this post.

Today I added your Proxy IP Hack Modification v1.1. Can you explain why you've changed the text in the phrase thread_displayproxyip from

Below is text from original Proxy Detector v3.0 hack which is replaced

The proxy IP Address is: $postinfo[ipaddress]<br>
The proxy host name is: $postinfo[hostaddress]<br>
The real IP Address is: $postinfo[proxyip]
--------------------------------------------------------
to

Real IP Address : $postinfo[ipaddress]<br>
$postinfo[hostaddress]<br>
Proxy Server IP Address : $postinfo[proxyip]<br>
$postinfo[proxyhost]
-----------------------------------------------------------
Why was this necessary?

Also, in your postbit_ip modification one of the lines you add is:

<if condition="($post[proxyip] != '' & $permissions['adminpermissions'])">

I changed it to <if condition="($post[proxyip] != '')">

to allow my supermods to see the red gif identifying the proxy users.
Reply With Quote
  #25  
Old 10-03-2004, 04:27 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 MickDoneDee
Can you explain why you've changed the text in the phrase thread_displayproxyip ....
Well I would have hoped it was obvious from looking at it. The old template has the ip's reversed (i.e. it displays the proxyip as the real ip, and vice versa) - there is also now a forth line to display the proxy servers host name.

Quote:
Originally Posted by MickDoneDee
<if condition="($post[proxyip] != '' & $permissions['adminpermissions'])">

I changed it to <if condition="($post[proxyip] != '')">

to allow my supermods to see the red gif identifying the proxy users.
Fine, it was just an extra check and should probably be removed anyway as it's a bit redundant. Interestingly, our supermods can see them anyway. If I do another update I'll probably remove it myself.
Reply With Quote
  #26  
Old 10-03-2004, 08:55 PM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
Well I would have hoped it was obvious from looking at it. The old template has the ip's reversed (i.e. it displays the proxyip as the real ip, and vice versa) - there is also now a forth line to display the proxy servers host name.
It was obvious to me, Paul but I wanted confirmation from a coder. Are you saying that original text display is incorrect? Why then hasn't someone informed mtha?
https://vborg.vbsupport.ru/showthread.php?t=61331
Reply With Quote
  #27  
Old 10-03-2004, 09:28 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 MickDoneDee
It was obvious to me, Paul but I wanted confirmation from a coder. Are you saying that original text display is incorrect? Why then hasn't someone informed mtha?
https://vborg.vbsupport.ru/showthread.php?t=61331
No, the original text display is correct for the way his hack works.

The main reason I wrote this [for our forum] was because when his hack detects a proxy, it still treats the proxy server ip as the real ip, and just records the real ip in the proxyip field. As detailed in post one of this thread, my hack corrects this 'problem' and makes sure the forum always uses the members real ip, even when a proxy is detected.
Reply With Quote
  #28  
Old 10-03-2004, 09:47 PM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again, Paul. Just wanted further clarification as the fields appear to be swapped between your version and the original but your modification works and adds further benefits to the original without diminishing the original so thankyou for sharing it.
Reply With Quote
  #29  
Old 10-05-2004, 02:00 PM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M

The main reason I wrote this [for our forum] was because when his hack detects a proxy, it still treats the proxy server ip as the real ip, and just records the real ip in the proxyip field. As detailed in post one of this thread, my hack corrects this 'problem' and makes sure the forum always uses the members real ip, even when a proxy is detected.
Paul, I need further clarification, please. With your hack installed and a member logs in using a proxy will that proxy address be stored in the database and be available to search in admin or mod cp to see which members use the same proxy server?

Or are proxy IP addresses ignored and not stored? Thereby, making it impossible to search and find proxy IPs shared by members.
Reply With Quote
  #30  
Old 10-06-2004, 12:33 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 MickDoneDee
With your hack installed and a member logs in using a proxy will that proxy address be stored in the database and be available to search in admin or mod cp to see which members use the same proxy server?
Yes, and No. Both addresses are stored, but the ACP / MCP functions only scan the real ip data field, not the proxy ip field.

Quote:
Originally Posted by MickDoneDee
Or are proxy IP addresses ignored and not stored? Thereby, making it impossible to search and find proxy IPs shared by members.
No, and Yes !. As above, the proxy server addresses are stored, but the current vB ip functions do not access them.
Reply With Quote
  #31  
Old 10-06-2004, 04:38 PM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul, since installing your hack I'm getting weird results when searching in admin cp Search IP Addresses.

For example: a member called Scott-Wozniak has 640 posts recorded with 80.3.32.4 When I do a search "Find IP Addresses for user" and type Scott-Wozniak I get 80.3.32.4 However, when I use "Find Users by IP Address" and type 80.3.32.4 I get No Matches Found. What is going on here, Paul. Have others experienced the same problem since installing this hack.

I've checked other members including myself and some IP numbers listed when using Find IP Addresses for user return "No Matches Found" when entered as the search string in Find Users by IP Address to get the members name. But some IP numbers do return the member's name. Any explanation for this?
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 10:49 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.07440 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
  • (8)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