Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Proxy Detector v3.1 - for Posts and WOL Details »»
Proxy Detector v3.1 - for Posts and WOL
Version: 1.00, by mtha mtha is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 02-07-2004 Last Update: 06-20-2004 Installs: 68
DB Changes
 
No support by the author.

############################################
# Hack Name: Proxy Detector v3.1
# Orgiginal hack by Takara and Stadler (for vB 2.0)
# Modified for vB 3.0.1 and Addon by HacNho
# Compatibility to vB 3.0.x
# Date: 06.20.04
############################################
# History:
# Version 3.1: (update 06.20.04)
# 1. Display ProxyIP in WhoIsOnline list (in UserAgent section)
#
# Version 3.0:
# 1. Compatibility to vB 3.0 RC4
# 2. Admin with "adminpermission" will see the "ProxyIP when overmouse if the IP is not shown
# 3. Proxy IP will be displayed with IP address in show IP page
#
# # Version 2.0 ...
# # Version 1.0 by Takara and Stadler (for vB 2.x)

###########################################
# Description: This is little hack detects via the Environmental Variable
# HTTP_X_FORWARDED_FOR if the user is using a proxy. Most proxys give out this
# variable. If it is it will display it out for you, and allow you to view the
# real IP of the person, and proxy IP when you click the link (in Post or Who'sOnline).
#
# Files Edited: 5 - includes/init.php
# - Files edited for proxyIP in posts: 2- includes/functions_newpost.php, postings.php
# - Files edited for proxyIP in WOL: 2- includes/sessions.php, online.php
# Templates Modified for proxyIP in posts: 2 - postbit_ip_show, postbit_ip_hidden
# Templates Modified for ProxyIP in WOL: 1 - whosonlinebit
# SQL Query to run: 2 (add proxyip in post and session table)
# Phrase to add: thread_displayproxyip

#
# Remember to backup your files and DB before making any changes!
############################################

INSTALL: HN-ProxyDetextor-301.txt (8.9 KB)

Upgrade from version 3.0 or only install ProxyDetector for WOL:
HN-ProxyDetextor-WOL.txt (11.5 KB) - Update 06.20.04

Upgrade from version for vB beta7 to version 3.0HN-ProxyDetextor-upgrade-b7-RC4.txt (3.5 KB)

SCREENSHOTS:
proxydetected.jpg (7.8 KB)
proxyip-WOL.gif (10.1 KB)



*NEW: version 3.1 will save and show proxyIP in Who is Online page.
In order to see proxy, you need to turn "UserAgent" on:
http://YourDomain/Yourforum/online.php?ua=1


Remember to click

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 10-04-2004, 05:14 PM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MickDoneDee
Neal, the three lines of info should start with:

The proxy IP Address is:
The proxy host name is:
The real IP Address is:

if you have modified the thread_displayip template as suggested in Proxy Detector v3.1.

What hack have you installed exactly?
PD v3.1

I'm uninstaling it anyhow.
Reply With Quote
  #73  
Old 10-04-2004, 05:25 PM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nealparry
PD v3.1

I'm uninstaling it anyhow.
Neal, I made an error when I said:
if you have modified the thread_displayip template as suggested in Proxy Detector v3.1.

it should say:
if you have created the thread_displayproxyip phrase as suggested in Proxy Detector v3.1.

The phrase thread_displayip already exists. You are not meant to touch that. You are meant to create a NEW phrase called thread_displayproxyip.

In the Text field you should insert:

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

That will give you the proper display.
Reply With Quote
  #74  
Old 10-05-2004, 12:52 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nealparry
Well i've installed everything as I should and when I click the computer Icon on the post, I get the following page (View image). Shouldn't that be something different?
Did you do all the steps, including this one?:

### Run the Following SQL Query (for POST)
ALTER TABLE post ADD proxyip VARCHAR(50) not null AFTER ipaddress;

### Run the Following SQL Query (for WOL)
ALTER TABLE session ADD proxyip VARCHAR(50) not null AFTER `host`;


you have to have that field to store proxyIP, otherwise you will get the default IP page as you had
Reply With Quote
  #75  
Old 10-05-2004, 02:20 PM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mtha
Did you do all the steps, including this one?:

### Run the Following SQL Query (for POST)
ALTER TABLE post ADD proxyip VARCHAR(50) not null AFTER ipaddress;

### Run the Following SQL Query (for WOL)
ALTER TABLE session ADD proxyip VARCHAR(50) not null AFTER `host`;


you have to have that field to store proxyIP, otherwise you will get the default IP page as you had
Yes I did, and checked the database and it was all in there. I may have done something else wrong but who knows. I'm normally okay at adding hacks but I'll leave this one for now....:ermm:

Good job with it anyhow, wish I could make them!
Reply With Quote
  #76  
Old 10-06-2004, 05:21 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nealparry
Yes I did, and checked the database and it was all in there. I may have done something else wrong but who knows. I'm normally okay at adding hacks but I'll leave this one for now....:ermm:
The new template will ONLY be displayed when PROXYIP exists (recorded).

You should try to add (manually) some number into the proxyip field of some post that you KNOW (in order to test). If you have the number appeared in "show IP windows" then you are fine, just check the code to detect the proxy. Some proxys are not detectable.



btw, the code only work for NEW posting. it wouldnt know the proxyip for old posts.
Reply With Quote
  #77  
Old 10-06-2004, 09:36 AM
Goodspeed Goodspeed is offline
 
Join Date: Aug 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just installed it and faced to the same problem... Looks like information do not add into proxyip in the post table. This field clean. Could you advise something?
Reply With Quote
  #78  
Old 10-08-2004, 06:12 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Goodspeed
I've just installed it and faced to the same problem... Looks like information do not add into proxyip in the post table. This field clean. Could you advise something?
do some checking as I said earlier first. I wont advice if I dont know more detail
Reply With Quote
  #79  
Old 10-11-2004, 10:25 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I could ask for some assistance as this is not working.

If I use the link http://YourDomain/Yourforum/online.php?ua=1 then I get the new look Who's Online page with all of the relevant details. However, this info is not saved and when I next go to Who's Online it has reverted back to its original state.

Also, when I click on the IP info button in the postbit I just get the regular IP info postings.php page. I don't get the proxy ip is etc which is shown in attachment 1.

I am running 3.0.3 so this may have something to do with it.

Any help would be most appreciated.
Reply With Quote
  #80  
Old 10-11-2004, 11:09 AM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look at the bottom of Who's Online - you should see these settings:

Display: All (space) User Agent: No (space) Per Page: 20

They are the default settings that appear whenever you load http://YourDomain/Yourforum/online.php?

To see the results of the Proxy Detector v3.1 hack you need to select User Agent: Yes

The Real IP is seen above the user agent info and if a Proxy IP is detected you will see the round blue icon with question mark within the user agent info. Mouse-over that to see the Proxy IP.

If you are concerned about the User Agent setting defaulting every time you leave and return to Who's Online then keep Who's Online open but minimised as an icon on your taskbar while you browse the rest of the site in another open window.
Reply With Quote
  #81  
Old 10-11-2004, 11:18 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MickDoneDee
Look at the bottom of Who's Online - you should see these settings:

Display: All (space) User Agent: No (space) Per Page: 20

They are the default settings that appear whenever you load http://YourDomain/Yourforum/online.php?

To see the results of the Proxy Detector v3.1 hack you need to select User Agent: Yes

The Real IP is seen above the user agent info and if a Proxy IP is detected you will see the round blue icon with question mark within the user agent info. Mouse-over that to see the Proxy IP.

If you are concerned about the User Agent setting defaulting every time you leave and return to Who's Online then keep Who's Online open but minimised as an icon on your taskbar while you browse the rest of the site in another open window.
*looks sheepishly stupid for a moment*.

Thankyou. Although, in the first screen shot is that suppose to be displayed when I click on the IP address icon located next to each post?
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 02:39 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.04703 seconds
  • Memory Usage 2,319KB
  • 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
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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