Location: PHPKode > scripts > sIPb > sipb/sIPb_Sample.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
  <title>sIPb-sample</title>
  
</head>
<body>

<br><br><br>
<div align="center">
<h2>This is a small demo of sIPb</h2>

<?php 
include_once("./sIPb.php");
$ip = new sIPb;

if (isset($_GET["blockme"])) {
   // block the ip during the next 10 seconds
   $ip->blockIP(10);
?>
   <h2>Now your IP is blocked for 10 seconds.<br>
       <A href="./sIPb_SamplePart2.php"> Klick here </A> during this
       time, to test sIPb without redirection<br>
       or <A href="sIPb_SamplePart3.php">here</A> 
        to test sIPb with redirection
        <form >
           <input type="button" value = "Back" onclick="history.back()">
        </form>
<?php
 } 
 else { 
 ?>

<h3>If you klick the button &#034;Block me&#034; your IP is blocked for 10 seconds</h3>

<br>
<form  method="get" action="<?php echo $_SERVER["PHP_SELF"];?>">
   <INPUT type="submit" name="blockme" value="Block me">
 </form>
</div>
       
<?php
 } ?>
</body>
</html>
Return current item: sIPb