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
  #122  
Old 02-26-2005, 08:38 AM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Join me (Mike) in this chat room and I'll take you through it. Make sure you have the chat room window open and the phpMyAdmin window open.

http://client1.sigmachat.com/sc.pl?id=62374
Reply With Quote
  #123  
Old 02-26-2005, 09:03 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MickDoneDee
Join me (Mike) in this chat room and I'll take you through it. Make sure you have the chat room window open and the phpMyAdmin window open.

http://client1.sigmachat.com/sc.pl?id=62374

thanks mick you fixed my problem! i appreciate the time and patience. the table and query worked perfectly. your the man!
Reply With Quote
  #124  
Old 02-26-2005, 09:05 AM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome. :classic:
Reply With Quote
  #125  
Old 02-26-2005, 09:12 AM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lowandloudinc
thanks mick you fixed my problem! i appreciate the time and patience. the table and query worked perfectly. your the man!
You may have problems with the rest of the hack because your table names differ from what is assigned in the code.
Reply With Quote
  #126  
Old 02-26-2005, 09:36 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MickDoneDee
You may have problems with the rest of the hack because your table names differ from what is assigned in the code.
well everything installed smoothly but now how do i know if i have an error and also how will i know it works?
Reply With Quote
  #127  
Old 02-26-2005, 09:36 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lowandloudinc
it didnt work either

SQL-query:

ALTER TABLE smoralo_forum_post ADD proxyip VARCHAR( 50 ) NOT NULL AFTER ipaddress
MySQL said:

#1146 - Table 'smoralo_forum.smoralo_forum_post' doesn't exist
why do you add that smoralo thingy twice ? and using table prfixes like that isn't verry "user friendly" it verry confusing anyway your problem is solved i see
Reply With Quote
  #128  
Old 02-26-2005, 09:59 AM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lowandloudinc
well everything installed smoothly but now how do i know if i have an error and also how will i know it works?
You need someone to make a post using a proxyip address. I tested my own by going to a website which issues free proxy ip addresses and then in my browser internet options I selected proxy server and input the proxy ip address. If you can't do that then I'll test it for you if you give me temporary access to post on your forum.

I also wonder whether this query will work?

Code:
//	 	Paul M Proxy Hack v1.2 
		// ### 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 Proxy Hack
The query is calling the table called post. That is not the name of your post table. Have you changed that?

Perhaps this part of the query (TABLE_PREFIX) makes the query work with tables that use prefixes like yours. If it didn't have that I doubt it would work properly. Fantastic that Jelsoft thought about that when coding the software.

Update: I've done some further research and found that vB2 did not support table prefixes but vB3+ does. This quote from vB.com:
Quote:
Originally Posted by Zachery
When you install vBulletin, you can define a table prefix, by default there is not one. However in config.php there is a setting that tell you if you have one or not: $tableprefix
http://www.vbulletin.com/forum/showthread.php?t=130708

Paul, I wonder whether you should ammend your query to include TABLE_PREFIX to stop people with table prefixes from getting query errors and enable them to execute the query properly?
Reply With Quote
  #129  
Old 02-26-2005, 04:30 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
Paul, I wonder whether you should ammend your query to include TABLE_PREFIX to stop people with table prefixes from getting query errors and enable them to execute the query properly?
Table prefixes are only a feature of vB itself - MySQL would not understand the query if I added it. Most people know if they are using prefixes, but I might add a note or something later.
Reply With Quote
  #130  
Old 02-26-2005, 04:54 PM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well update on my install it works fine mickdondee tested for me with a test account and it works fine i just named my table smora_post in the query like dundee told me to do and it went smooth after that, thanks to the maker of the hack and to all that have posted.
Reply With Quote
  #131  
Old 02-26-2005, 11:56 PM
bonnmac bonnmac is offline
 
Join Date: Mar 2002
Location: United States
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i need some help can you explain the phrases what to do with this its not clear in the directions i mean i know how to add phrase but the way you have them they won't install thanks for a great addition
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 12:49 AM.


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.09297 seconds
  • Memory Usage 2,318KB
  • 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
  • (1)bbcode_code
  • (7)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
  • (2)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