advanced code snippet search
ariunbolor on 07/22/11
ip from block users away unwanted hackers
07/22/11 05:13pm
1 person have marked this snippet as a favorite
noone453
<?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();} ?>
Report this snippet Tweet
Comment:
You need to login to post a comment.