Login   Register  
PHP Classes
elePHPant
Icontem

File: sIPb_SamplePart2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Uwe Stein  >  sIPb  >  sIPb_SamplePart2.php  >  Download  
File: sIPb_SamplePart2.php
Role: Example script
Content type: text/plain
Description: Target for sIPb_Sample.php
Class: sIPb
Block the IP address of undesired HTTP clients
Author: By
Last change:
Date: 2005-04-10 04:27
Size: 372 bytes
 

Contents

Class file image Download
<div align="center">
<h1>sIPb-Test without redirection</h1><br>

<?php
include_once("sIPb.php");
$ip = new sIPb;
echo 
"<h2>Your IP is ";

if (
$ip->isBlocked()) {
  echo 
"blocked<br>Wait some seconds and reload this page <br>";
}
else {
  echo 
"not blocked";
}
  
echo 
"</h2>";
?>
<form >
     <input type="button" value = "Back" onclick="history.back()">
 </form>
</div>