code_junkie

How can I ban a whole company from my web site?

Nov 10th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. Deny from x.x.x.x
  2.  
  3. Deny from 192.168.0
  4.  
  5. Deny from sub.domain.tld
  6.  
  7. $ips = array('1.1.1.1', '2.2.2.2', '3.3.3.3');
  8. if(in_array($_SERVER['REMOTE_ADDR'])){die();}
Add Comment
Please, Sign In to add comment