The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Proxy Detector v3.1 - for Posts and WOL Details »» | |||||||||||||||||||||||||
############################################
# 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
|
Comments |
#22
|
||||
|
||||
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:
# 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&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> |
#23
|
|||
|
|||
Đ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] |
#24
|
||||
|
||||
Quote:
|
#25
|
|||
|
|||
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
|
#26
|
|||
|
|||
Quote:
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&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('<', '<', $proxyip); define('PROXYIP', str_replace('>', '>', $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 |
#27
|
|||
|
|||
installing now thanx
|
#28
|
|||
|
|||
ok i think i got it does this screen look right
|
#29
|
|||
|
|||
Not sure about the 'Alt IP Address' bit, I don't get that.
This is what I get - (IPs edited of course) |
#30
|
|||
|
|||
nice hack!!! thx
|
#31
|
|||
|
|||
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
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|