View Single Post
Old 05-17-2003, 06:39 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,694
redhead is on a distinguished road
Or perhaps like this:
PHP Code:
<?php

if (eregi("123.123.([0-9]$|[0-9]{2}$|255$).([0-9]$|[0-9]{2}$|255$)",
            
ip2long($HTTP_SERVER_VARS["REMOTE_ADDR"])))
{
  print 
"Banned";
  exit();
}
else
{
  print 
"passed";
}
?>
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote