order allow,deny
deny from <ip_here>
allow from all
<?php
$banned[0]="127.0.0.1"; // Set IP Address
$banned[1]="127.0.0.2"; // adding another ip address
// can add as many as you want
if (in_array($_SERVER['REMOTE_ADDR'],$banned)) header("HTTP/1.1 403 Forbidden");
?>