Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2002, 04:26 AM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Proxy Detector

NOTE: I didnt have the patience to wait a day for someone else to do it, lol. So i did it myself https://vborg.vbsupport.ru/showthrea...threadid=38358

The basis for this hack is that when mods/admins click on the link to see the persons IP (assuming they have IPs logged, but only viewable to mods/admins) it will tell them if the person is using a proxy, and if they are it will tell you the real IP of the person.

How? Well as some of you may know, most proxys send out an additional header $HTTP_X_FORWARDED_FOR . This gives the real IP of the person. For example, right now I am using rogers default user proxy, my environmental variables would read:

$REMOTE_ADDR 66.185.84.198
$HTTP_X_FORWARDED_FOR 24.100.4.29

So, when posting, the php would do something like
Code:
if ($HTTP_X_FORWARDED_FOR) { 
//insert into sql table etc
}
Then somewhere in the inner workings of the vb code, it would check if there is data in that sql table, if there is then it would display the IP. This could be done in the IP viewing php, or as I thought origionally somewhere in the post on the left side under the username etc.

Anyone want to help me with this? I can do the php, but I dont know what vb scripts to edit (or you can just do it all yourself )

Thanks ^_^ :bunny: (kawaii bunny, hehe)
Reply With Quote
  #2  
Old 05-06-2002, 05:17 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to add to that, proxy detecter that checks their real IP and if that IP is banned bans them

i have alot of lamers that i IP ban and they come back with a proxy to cause trouble
Reply With Quote
  #3  
Old 05-06-2002, 06:44 AM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone could get me started on what files I would start to look at for this I can do it myself ^^
Reply With Quote
  #4  
Old 05-06-2002, 04:28 PM
Ren Ren is offline
 
Join Date: Nov 2001
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet idea ..I would love that feature!!
Reply With Quote
  #5  
Old 05-06-2002, 05:10 PM
Demascus's Avatar
Demascus Demascus is offline
 
Join Date: Dec 2001
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so would i
Reply With Quote
  #6  
Old 05-06-2002, 07:09 PM
RDX1 RDX1 is offline
 
Join Date: Apr 2002
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i test this on my page? i would like to test a proxy, but not sure how i would do that using ssi, or php
Reply With Quote
  #7  
Old 05-06-2002, 08:28 PM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eurgh, if anyone is willing to give me a hand, point out where I have to do each thing, or just some general guidance please PM me.
Reply With Quote
  #8  
Old 05-06-2002, 08:43 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be good- maybe not ban them, but have a little icon next to their name in the postbit that shows it's a proxy..

(some people use proxys to surf the web when at work- bypasses stupid filters)
Reply With Quote
  #9  
Old 05-06-2002, 09:04 PM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uh huh Heretic, thats what I was thinking
Reply With Quote
  #10  
Old 05-06-2002, 09:52 PM
heretic's Avatar
heretic heretic is offline
 
Join Date: Nov 2001
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

k, so you need something that referes to the IP every time.

the only issue that gets me is how to use the header information, i.e. HTTP_X_FORWARDED_FOR
Reply With Quote
Reply

Thread Tools
Display Modes

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:06 PM.


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.04097 seconds
  • Memory Usage 2,259KB
  • Queries Executed 12 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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