vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Proxy Detector (https://vborg.vbsupport.ru/showthread.php?t=38301)

Takara 05-06-2002 03:26 AM

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 :p)

Thanks ^_^ :bunny: (kawaii bunny, hehe)

Keyser S?ze 05-06-2002 04:17 AM

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

Takara 05-06-2002 05:44 AM

If anyone could get me started on what files I would start to look at for this I can do it myself ^^

Ren 05-06-2002 03:28 PM

sweet idea ..I would love that feature!!

Demascus 05-06-2002 04:10 PM

so would i

RDX1 05-06-2002 06:09 PM

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

Takara 05-06-2002 07:28 PM

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.

heretic 05-06-2002 07:43 PM

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)

Takara 05-06-2002 08:04 PM

Uh huh Heretic, thats what I was thinking

heretic 05-06-2002 08:52 PM

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


All times are GMT. The time now is 12:53 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.03065 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete