vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Ultimate Proxy Blocker (https://vborg.vbsupport.ru/showthread.php?t=57926)

TheVoidz 10-16-2003 12:04 AM

Ultimate Proxy Blocker
 
So I was thinking of ways to block proxy users and I though why not do it like most IRC servers do and connect to the port to see if there is anything open on default proxy ports.

Once it has been determined that a certain IP is not a proxy it can be added to an allowed list and won't be checked again.

If a IP has been declared a proxy it will be added to a disallowed list and won't have access to the forums.

Thus putting a total end to proxy servers. wewt!

Comments, ideas? etc?

$Ports = array('1080', '8080', '8000', '3128', '8888', '23', '80', '8081');
$AllowedHosts = array('some list');
$DisallowedHosts = array('some list');
$SocketTimeout = 1;
if (in_array ($REMOTE_ADDR, $AllowedHosts)){
break;
} else {
if ((!in_array ($REMOTE_ADDR, $AllowedHosts)) && (!in_array ($REMOTE_ADDR, $DisallowedHosts))){
$x = 0;
while ($Ports[$x]){
$fSockPointer = fsockopen($REMOTE_ADDR, $Ports[$x], $errno, $errstr, $SocketTimeout);
if ($fSockPointer) {
$proxy = true;
fclose($fSockPointer);
}
$x++;
}
}
}

Rein Masamuri 11-12-2003 06:55 AM

Wouldn't this kill peoples IP's if they're behind a firewall?


All times are GMT. The time now is 06:26 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.01811 seconds
  • Memory Usage 1,705KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete