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
  #52  
Old 11-17-2004, 09:20 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 Harry Bo
Paul, do you know if this hack works with NTL's UK proxy servers? I administrate a fairly large vB and we can end up with 20+ users in the same city on one proxy

If it works with NTL, I'll be installing soon

Cheers,

HB
Harry Bo - Check the sig - we are primarily an ntl user site - it was written with their transparant caches in mind.

I see you are not far from me - what is your site ?
Reply With Quote
  #53  
Old 11-17-2004, 09:26 PM
Harry Bo Harry Bo is offline
 
Join Date: Nov 2004
Location: Midlands, UK
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I visited your site shortly after posting, I figured it would probably work then, lol

I'm here from www.talkaudio.co.uk, the UK's biggest Car Audio Forum

HB
Reply With Quote
  #54  
Old 11-18-2004, 07:28 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
This is a simple modification I did for our forum that is based on the existing 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.
well, just wondering if you should state the credit to Takara for his original work and a link to Proxy Detector Hack (v3.1)

thanks
Reply With Quote
  #55  
Old 11-18-2004, 08:40 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 mtha
well, just wondering if you should state the credit to Takara for his original work and a link to Proxy Detector Hack (v3.1)

thanks
Maybe you should read the installation notes ......
Quote:
This is partly based on the Proxy Detector v3.0 hack by "HacNho/Takara/Stadler".
:glasses:
Reply With Quote
  #56  
Old 12-05-2004, 08:37 PM
rh2004 rh2004 is offline
 
Join Date: Nov 2004
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi I get 'Could not find phrase 'thread_displayproxyip'.' and it is added, I also have
the IPINFO added..

Add the following phrase "thread_displayproxyip" ;

GLOBAL

Real IP Address : $postinfo[ipaddress]<br>
$postinfo[hostaddress]<br>
Proxy Server IP Address : $postinfo[proxyip]<br>
$postinfo[proxyhost]


This is my postbit..

Code:
<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<if condition="($post[proxyip] != '')">
<a href="postings.php?$session[sessionurl]do=getip&amp;p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ipp.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
<else />
<a href="ipinfo.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title="$post[ip]" border="0" /></a>
</else></if>
</if>
It should show me two IP buttons if using a proxy if a normal user no proxy
should give me just one button, now the buttons work its just when you
click on a proxy IP it gives you the above error...


EDIT I fixed it sorry I read through maybe you should place in the readme its Front-End Error



So my only question is can I show the proxy button if only admin, not mods or super mods
Reply With Quote
  #57  
Old 12-05-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 rh2004
EDIT I fixed it sorry I read through maybe you should place in the readme its Front-End Error
It's never been mentioned before, but I'll update the instructions when I have time.

Quote:
Originally Posted by rh2004
So my only question is can I show the proxy button if only admin, not mods or super mods
Just enclose it in a test for usergroup == 6. I would check the logic in you postbit code though - I can't make sense of it, I don't see how it actually works .....
Reply With Quote
  #58  
Old 12-13-2004, 10:11 PM
rh2004 rh2004 is offline
 
Join Date: Nov 2004
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok thanks for that... I have noticed an error which has arrised I think its
to do with this mod, I receive this a few times a day around 2-3


Code:
Database error in vBulletin 3.0.3:

Invalid SQL: 
INSERT INTO post
(threadid, parentid, title, username, userid, dateline, pagetext, 
allowsmilie,
showsignature, ipaddress, proxyip, iconid, visible, attach)
VALUES
(10154, , '',
'BlackbirdDJ', 2696, 1102976866,
'cheers', 1, 0,
'81.--,'', 0, 1, 0)

mysql error: You have an error in your SQL syntax.  Check the manual 
that corresponds to your MySQL server version for the right syntax to use 
near ' '',
'BlackbirdDJ', 2696, 1102976866,
'cheers', 1, 0,

mysql error number: 1064

Date: Monday 13th of December 2004 10:27:46 PM
Script: http://--/forum/newreply.php
Referer: http://--/showthread.php?t=10154
Username: BlackbirdDJ
IP Address: --

I have these mods added:

Who Viewed This Thread - Enhanced Version
Advanced Editing Options For Mods & Admins
Reoccurring Paypal Subscriptions
Email notification if someone attempts to access your Admin CP
BB Messenger 1.5
ipInfo -- Extra user IP information
Proxy ip to real ip conversion
V3acade
uCash & uShop
modmanagementv1
vBSigHosting
Whos online in admin
statistik_english2
Advanced Warning System (AWS)
Hide
vB Report Manager 2.0 (Admin CP) - Report to Email, PM, Forum



(PS: I removed the IP of the user, and URL - also note its off different users too)


Do you know whats wrong :ermm:
Reply With Quote
  #59  
Old 12-14-2004, 12:05 PM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can see the syntax error: there is no parentid value. However, I don't know which file is making that query. When the file is found you'll be able to fix the query.

Try searching all your files for this text string:

$DB_site->query("INSERT INTO " . TABLE_PREFIX . "post

I searched my files and couldn't find it so I don't think it's related to this hack.
Reply With Quote
  #60  
Old 12-14-2004, 06:02 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

There is also an error here

'BlackbirdDJ', 2696, 1102976866,
'cheers', 1, 0,
'81.--,'', 0, 1, 0)

But since you have edited the error message it's impossible to tell if it's a real error. If you want any more help you must post the actual error message, not an edited version.
Reply With Quote
  #61  
Old 12-15-2004, 12:38 AM
rh2004 rh2004 is offline
 
Join Date: Nov 2004
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the message as it is displayed, I have just repalced the IP

Code:
Database error in vBulletin 3.0.3:

Invalid SQL: 
			INSERT INTO post
				(threadid, parentid, title, username, userid, dateline, pagetext, 
allowsmilie,
				 showsignature, ipaddress, proxyip, iconid, visible, attach)
			VALUES
				(2463, , '',
				 'luciosestio', 2762, 1103012553,
				 'Grazie !', 1, 0,
				 '127.3.192.6','213.175.2.50', 0, 1, 0)
		
mysql error: You have an error in your SQL syntax.  Check the manual 
that corresponds to your MySQL server version for the right syntax to use 
near ' '',
				 'luciosestio', 2762, 1103012553,
				 'Grazie !', 1, 

mysql error number: 1064

Date: Tuesday 14th of December 2004 08:22:33 AM
Script: http://www.mydomain.com/forum/newreply.php
Referer: http://www.mydomain.com/forum/showthread.php?t=2463
Username: luciosestio
IP Address: 127.3.192.6

Also any idea on where about this will be, in included folder?

DB_site->query("INSERT INTO " . TABLE_PREFIX . "post



Thanks
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 06:00 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.04873 seconds
  • Memory Usage 2,322KB
  • 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
  • (3)bbcode_code
  • (6)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_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
  • 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