to make it easier to maintain, I would hand code this.
add the following code at line 1 of your for page:
<?php
$banned = array();
$banned[] = "115.119.131.226";
$banned[] = "124.253.13.206";
$banned[] = "87.54.37.139";
if (in_array ($_SERVER['REMOTE_ADDR'], $banned)) {
header("location: http://www.google.com/");
exit();
}
?>
you can easily add a new IP to the array of banned IP addresses.