<?php
/*
Plugin Name: Google URI Redirector
Plugin URI: http://mindfulmusings.net
Description: This plugin strips URIs from your comments and uses the Google redirector to prevent comment spammers from taking advantage of your pagerank. Simply turn on or off
Author: Mark Ghosh (LaughingLizard)
Author URI: http://weblogtoolscollection.com/
*/ 

function googlify_href($input_text) {
    
$input_text preg_replace("/href=\"/","href=\"http://www.google.com/url?sa=D&q="$input_text);
    return 
$input_text;
}

function 
googlify_url($input_text) {
    
$input_text preg_replace("/http:\/\//","http://www.google.com/url?sa=D&q=http://"$input_text);
    return 
$input_text;
}

add_filter('comment_text''googlify_href');
add_filter('comment_url''googlify_url');
?>