Topic: Preventing comment spam with Google
This is a patch against the trunk that adds the rel="nofollow" attribute to BBCode tags and autolinked URLs to guard against comment spam. See http://www.google.com/googleblog/2005/0 … -spam.html for more information.
--- parser.php-old Wed Jan 19 14:25:40 2005
+++ parser.php Wed Jan 19 14:26:03 2005
@@ -270,7 +270,7 @@
// Ok, not very pretty :-)
$link = ($link == '' || $link == $url) ? ((strlen($url) > 55) ? substr($url, 0 , 39).' … '.substr($url, -10) : $url) : stripslashes($link);
- return '<a href="'.$full_url.'">'.$link.'</a>';
+ return '<a href="'.$full_url.'" rel="nofollow">'.$link.'</a>';
}