Redirect visitor using IP

I got spam on my forum. It is an old forum, and I do not have time to upgrade it. From my web statistic, the spammers seems to come from 193.53.87.95 and 193.53.87.93. I tried setting my forum, to block these IPs. But it does not seems to be working.

I’m going to try redirect the visitor from that IP to my other forum filled with spam. Here’s the code:

<?php
ob_start();
$visitor = $_SERVER['REMOTE_ADDR'];
if (preg_match("/193.53.87.95/",$visitor) 
|| preg_match("/193.53.87.93/",$visitor)) 
{
      header('Location: http://www.destination.com');
}
ob_get_clean();
?>
Jul 22, 2008 by
GreenGeeks WP Web Host ad ad ad ad