note 60742 deleted from security.hiding by betz
| From: | betz@php.net | Date: | Sun, 15 Jan 2006 21:32:38 +0000 |
| Subject: | note 60742 deleted from security.hiding by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101871@lists.php.net to get a copy of this message | ||
Note Submitter: ZorX
Reason: useless
----
This is an easy script that will ban the ip, for the current site you are on forexample(index.php)
This easy script will just ban from 1 site, but you can insert the script in the other sites you
have on your homepage. So here is the script
<?php
$ip = "The ip you will ban";
if ( $ip == $_SERVER['ADDR_REMOTE'] )
echo "You are banned from this site!";
?>