TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Script Giveaway (http://www.talkphp.com/script-giveaway/)
-   -   ProxyGuard [Simple] (http://www.talkphp.com/script-giveaway/2220-proxyguard-simple.html)

autehonker 02-10-2008 11:31 AM

ProxyGuard [Simple]
 
Hi this is simple ProxyGuard only blocked normal connecting,this not support web proxy if some one knowe advanced guard please share this (Shock4-5,Tor,etc..)

PHP Code:

<?php
// ProxyGuard
include ('./ProxyGurad.php');

?>

(ProxyGurad.php)
PHP Code:

<?

$basliklar 
= array(
'HTTP_VIA',
'HTTP_X_FORWARDED_FOR',
'HTTP_FORWARDED_FOR',
'HTTP_X_FORWARDED',
'HTTP_FORWARDED',
'HTTP_CLIENT_IP',
'HTTP_FORWARDED_FOR_IP',
'VIA',
'X_FORWARDED_FOR',
'FORWARDED_FOR',
'X_FORWARDED',
'FORWARDED',
'CLIENT_IP',
'FORWARDED_FOR_IP',
'HTTP_PROXY_CONNECTION'
);

foreach(
$basliklar as $baslik)
{
if( isset(
$_SERVER[$baslik]) ) die("Proxy Detected!");
}
?>

Regarts;:-)

Wildhoney 02-10-2008 11:23 PM

Looks good to me. Nice and simple.

ReSpawN 02-11-2008 08:15 AM

Lovely, going to try it out a.s.a.p.

Kalle 05-17-2008 06:08 AM

Simple yet effective. However I would have used array_key_exists() insted of the isset() construct ;)


*bump* =P

Nielsk 08-22-2008 08:36 PM

Quote:

Originally Posted by Kalle (Post 14701)
Simple yet effective. However I would have used array_key_exists() insted of the isset() construct ;)


*bump* =P

*2nd bump*

in_array() is faster :) But since the beginning of cURL based web proxies this script is useless

Tanax 08-23-2008 11:15 PM

Looks awesome, thanks!


All times are GMT. The time now is 04:08 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0