Block Ip Address

by Prabakaran 2012-09-05 19:07:34

<?php
$deny = array("111.111.111", "222.222.222", "333.333.333");
if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) {
header("location: http://www.google.com/");
exit();
} ?>
955
like
0
dislike
0
mail
flag

You must LOGIN to add comments