![]() |
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++; } } } |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|