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
  #22  
Old 02-19-2004, 09:48 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The MOD now work for vB3 RC4. See first post. (You may want to uninstall if you installed the version for beta7)
https://vborg.vbsupport.ru/showthrea...503#post474503

Quote:
Originally Posted by achtungbaby
I'm confused. What exactly shoudl we add to postbit_ip...where does the code from iphidden and ipshow go?
Dont worry about that postbit_ip_show and hidden anymore, just replace postbit_ip by:
# Replace all by

HTML Code:
 
<if condition="$show['ip']">
$vbphrase[ip]: $post[ip] <if condition="($post[proxyip] != '')">Proxy!<br>Real IP: $post[proxyip])</if>
<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] <if condition="($post[proxyip] != '')">- Proxy Detected! Real IP: $post[proxyip])</if>" border="0" />
</a>
</if>
 
Reply With Quote
  #23  
Old 02-29-2004, 02:35 PM
draculanowaday draculanowaday is offline
 
Join Date: Feb 2004
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Đi lang thang t?m hack/mod lại vớ phải đ?ng code của b?c Hắc Nho b?n n?y vui thật đ? I iem Dr?c?l? in GVN
[high]* draculanowaday will install it tomorrow [/high]
Reply With Quote
  #24  
Old 03-01-2004, 07:07 AM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by draculanowaday
Đi lang thang t?m hack/mod lại vớ phải đ?ng code của b?c Hắc Nho b?n n?y vui thật đ? I iem Dr?c?l? in GVN
[high]* draculanowaday will install it tomorrow [/high]
Welcome aboard
Reply With Quote
  #25  
Old 03-01-2004, 08:49 AM
NexVision NexVision is offline
 
Join Date: Nov 2003
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i installed this hack on rc4 and didnt notice anything dif but then again i was a little confused by the instructions anyone got them in idiot terms
Reply With Quote
  #26  
Old 03-03-2004, 10:15 PM
DVDF-Osiris DVDF-Osiris is offline
 
Join Date: Jun 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NexVision
ok i installed this hack on rc4 and didnt notice anything dif but then again i was a little confused by the instructions anyone got them in idiot terms
Here you are -
HTML Code:
############################################
# Hack Name: Proxy Detector v3.0
# Orgiginal hack by Takara and Stadler (for vB 2.0) 
# Modified for vB 3.0 RC4 by HacNho
# Date: 02.19.04
############################################
# Changes and Fixes:
# 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
###########################################
# 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/hostmask when you click the link.
#
# Files Edited: init.php, functions_newpost.php, postings.php
# Templates Modified: postbit_ip_show, postbit_ip_hidden
# SQL Columns Added: proxyip
# Phrase to add: thread_displayproxyip
#
# Notes: Thanks to Takara and Stadler who wrote and modify this hack for vBulletin 2.x
# I just modify to make it work with vB 3.x (PHP 4.3.3)
# Remember to backup your files and DB before making any changes! 
############################################


######################################
#RUN THE FOLLOWING SQL QUERY:
######################################

ALTER TABLE post ADD proxyip VARCHAR(50) not null AFTER ipaddress;



#####################################
#ADD NEW PHRASE: 
#####################################

PHRASE TYPE: Front-End Error Messages

VARNAME: thread_displayproxyip

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



#####################################
#Edit TEMPLATE: postbit_ip
#####################################
-----------------------------------
Replace the whole text with this:
-----------------------------------
<if condition="$show['ip']">
	$vbphrase[ip]: $post[ip] <if condition="($post[proxyip] != '')">Proxy!<br>Real IP: $post[proxyip])</if>
<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] <if condition="($post[proxyip] != '')">- Proxy Detected! Real IP: $post[proxyip])</if>" border="0" />
	</a>
</if>

<author>
HacNho
</author>

<homepage>

</homepage>



#######################################
#Edit the file: includes/init.php
#######################################
-----------------------------------
search for:
-----------------------------------
{
	define('ALT_IP', $_SERVER['REMOTE_ADDR']);
}
-----------------------------------
insert after:
-----------------------------------
// ####################### HN getproxyip START########################
// establish client Proxy address (if it exists) 
if ($_SERVER['HTTP_FORWARDED'] != '') 
{ 
	$proxyip = $_SERVER['HTTP_FORWARDED']; 
} 
else if ($_SERVER['HTTP_X_FORWARDED_FOR'] != '') 
{ 
	$proxyip = $_SERVER['HTTP_X_FORWARDED_FOR']; 
} 
else if ($_SERVER['HTTP_CLIENT_IP'] != '') 
{ 
	$proxyip = $_SERVER['HTTP_CLIENT_IP']; 
} 
else 
{ 
	$proxyip = ''; 
} 

$proxyip = preg_replace('/javascript/i', 'java script', $proxyip); 
$proxyip = str_replace('"', '"', $proxyip); 
$proxyip = str_replace('<', '&lt;', $proxyip); 
define('PROXYIP', str_replace('>', '&gt;', $proxyip)); 
unset($proxyip); 
// ####################### HN getproxyip END ########################



######################################################
#edit the file: includes/functions_newpost.php
#####################################################
-----------------------------------
search for:
-----------------------------------
	if ($vboptions['logip'])
	{
		$post['ipaddress'] = IPADDRESS;
	}
	else
	{
		$post['ipaddress'] = '';
	}
-----------------------------------
replace with:
-----------------------------------
// Begin proxyip hack - HacNho
	if ($vboptions['logip'])
	{
		$post['ipaddress'] = IPADDRESS;
		$post['proxyip'] = PROXYIP;
	}
	else
	{
		$post['ipaddress'] = '';
		$post['proxyip'] = '';
	}
// End proxyip hack - HacNho


-----------------------------------
search for:
-----------------------------------
		// ### POST NEW POST ###
		$DB_site->query("
			INSERT INTO " . TABLE_PREFIX . "post
				(threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie,
				 showsignature, ipaddress, iconid, visible, attach)
			VALUES
				($threadinfo[threadid], $parentid, '" . addslashes($post['title']) . "',
				 '" . addslashes($post['postusername']) . "', $bbuserinfo[userid], " . TIMENOW . ",
				 '" . addslashes($post['message']) . "', $post[enablesmilies], $post[signature],
				 '" . addslashes($post['ipaddress']) . "', $post[iconid], $post[visible], $totalattachments)
		");
-----------------------------------
replace with:
-----------------------------------
// Begin proxyip hack - HacNho
		// ### POST NEW POST ###
		$DB_site->query("
			INSERT INTO " . TABLE_PREFIX . "post
				(threadid, parentid, title, username, userid, dateline, pagetext, allowsmilie,
				 showsignature, ipaddress, proxyip, iconid, visible, attach)
			VALUES
				($threadinfo[threadid], $parentid, '" . addslashes($post['title']) . "',
				 '" . addslashes($post['postusername']) . "', $bbuserinfo[userid], " . TIMENOW . ",
				 '" . addslashes($post['message']) . "', $post[enablesmilies], $post[signature],
				 '" . addslashes($post['ipaddress']) . "','" . addslashes($post['proxyip']) . "', $post[iconid], $post[visible], $totalattachments)
		");
// End proxyip hack - HacNho





################################################
#edit the file: postings.php
###############################################
-----------------------------------
search for:
-----------------------------------
	eval(print_standard_error('thread_displayip', 1, 0));

-----------------------------------
replace with:
-----------------------------------
// Begin proxyip hack - HacNho
	if ($postinfo[proxyip] != '') 
	{
		eval(print_standard_error('thread_displayproxyip', 1, 0));
	}
	else 
	{
		eval(print_standard_error('thread_displayip', 1, 0));
	}
// End proxyip hack - HacNho
Nice hack mtha, installed
Reply With Quote
  #27  
Old 03-03-2004, 10:25 PM
NexVision NexVision is offline
 
Join Date: Nov 2003
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installing now thanx
Reply With Quote
  #28  
Old 03-03-2004, 10:42 PM
NexVision NexVision is offline
 
Join Date: Nov 2003
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i think i got it does this screen look right
Reply With Quote
  #29  
Old 03-04-2004, 08:16 AM
DVDF-Osiris DVDF-Osiris is offline
 
Join Date: Jun 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure about the 'Alt IP Address' bit, I don't get that.

This is what I get -

(IPs edited of course)
Reply With Quote
  #30  
Old 03-04-2004, 08:20 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack!!! thx
Reply With Quote
  #31  
Old 03-04-2004, 01:33 PM
NexVision NexVision is offline
 
Join Date: Nov 2003
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can anyone help me not sure wut i did wrong i followed the reworded directions above and still nothing its not decoiphering the actual IP I have vb3 rc4
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:21 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.05031 seconds
  • Memory Usage 2,334KB
  • Queries Executed 27 (?)
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
  • (2)bbcode_html
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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