Return to Snippet

Revision: 49490
at July 22, 2011 17:13 by ariunbolor


Initial Code
<?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();
} ?>

Initial URL

                                

Initial Description

                                

Initial Title
Block IP address

Initial Tags
ip

Initial Language
PHP