Posted By

ariunbolor on 07/22/11


Tagged

ip from block users away unwanted hackers


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

noone453


Block IP address


 / Published in: PHP
 

  1. <?php
  2. $deny = array("111.111.111", "222.222.222", "333.333.333");
  3. if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) {
  4. header("location: http://www.google.com/");
  5. exit();
  6. } ?>

Report this snippet  

You need to login to post a comment.