Location: PHPKode > projects > WebServer Sentry > icept/block.php
<?php
include_once ('dbconnecticeptblock.php');
include_once ('raw.php');
include_once ('realip.php');
include_once ('gbrowser.php');
include_once ('os.php');
include_once ('botcheck.php');
include_once ('raw.php');
include_once ('realip.php');
include_once ('gbrowser.php');
include_once ('os.php');
include_once ('botcheck.php');
include_once ('geturi.php');
$sql="SELECT id,pb FROM $tbl_name4 GROUP BY pb";
$result=mysql_query($sql);
$mission=$_SERVER['REMOTE_ADDR'];
$num_row = mysql_num_rows($result) - 1;
$i=0;
while($row = mysql_fetch_array($result)){
$banned[$i]=$row['pb'];
$targetAddr = $banned[$i];
$sql9="SELECT id,igip FROM $tbl_name6 GROUP BY igip";
$result9=mysql_query($sql9);
while($row = mysql_fetch_array($result9)){
$tick=$row['igip'];
if(strstr($mission,$tick)){
$i++;
}else{
}
if(strcasecmp($mission, $targetAddr) == 0){
include ('redir.php');
}else{   
$i++; 
}
}
}
mysql_close();
#WebServer Sentry:-
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT	
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT	
#   Copyright Vic Kaprilian(C)2010 - Contact hide@address.com Version 1.0 WebServer Sentry Anti FLOOD/ANTI DOS SCRIPT
#WebServer Sentry uses PHPLOT class and IP2NATIONS and any licensing conditions of PHPLOT/IP2NATIONS remain with its respective copyright
#holder/licensing conditions.
#Reverse engineering this script is not permitted.Modifications to improve its performance are welcome as long as you document this at the sourceforge project page.
#Contact hide@address.com    
#########################################################################################################################################
#########################################################################################################################################
#Welcome to WebServer Sentry: Version 1.0:- Please note that Vic Kaprilian does not accept responsibility for the use of the script or any financial loss and it is being released because the E-Commerce/Internet needs it!.
?>
Return current item: WebServer Sentry