Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ip = $_SERVER['REMOTE_ADDR'];
- $ban = array('333.333.333.333','68.225.34.86');
- $count = count($ban);
- for ($i=0; $i<$count; $i++) {
- if ($ip == $ban[$i]) { die("I'm sorry, you've been banned. $ip"); }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement