* and then Aidan Lister declared.... > I cannot fathom why you would use preg_match for this. > > This will get an "exact match"... > if ($ip == $_SERVER[REMOTE_ADDR]) { $ban = true; } Ahh.. an oversight. The script has been cobbled together from a previous version that supported partial matches. I'd just missed the obvious, thankyou ;-) > Despite this being the worst idea I've ever seen, combined with a true lack > of understanding, I wish you well. There is no need to be insulting. I doubt very much anyone thinks your a clever guy for acting like a twat on a mailing list. -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php