if you use cookie..... then people remove those cookie........ then they can access it again????
use php code instead:
PHP Code:
<?
$banned[0]="xxx.xxx.xxx.xxx"; // IP in the form of "127.0.0.1" or whatever
$banned[1]="yyy.yyy.yyy.yyy";
$banned[2]="zzz.zzz.zzz.zzz";
// add as many as you wish
if (in_array($_SERVER['REMOTE_ADDR'],$banned)) header("HTTP/1.1 403 Forbidden");
?>
anyway... use .htaccess method is the safer way:
PHP Code:
order allow,deny
deny from 127.0.0.1
deny from 127.0.0.2
deny from 127.0.0.3
allow from all
All these.
----------------------------------------------------------------------
-Anish