Place this code to top of page or to connection file!
<?
$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");
?>