Advertisement
Guest User

Neelz

a guest
Mar 10th, 2008
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1.   <?php
  2.   // Ip adresses who are banned is in the $ip_ban. You can put how many you want.
  3. $ip_ban = array("20.191.17.253","","");
  4.  
  5. // Checks if the visitor can visit your site
  6. if(in_array($_SERVER['REMOTE_ADDR'],$ip_ban)){
  7.  
  8.     // If not the script will write out this
  9.     echo '<h1>Your ip is banned from this site</h1>';
  10.  
  11.     // End of code
  12.     exit();
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement