Google and other search engines obey an attribute on links that causes them to ignore the links and not give any "juice" to the websites that are linked to. Comment and trackback spammers try to use your website to give themselves more credibility by putting links to their sites from yours through those comments and trackbacks. Using the "nofollow" attribute prevents this from working. You can still have people posting bogus trackbacks, but at least now they don't gain anything by it.
To implement this in Geeklog v 1.4rc2 I made these changes:
In lib-trackback.php I changed these lines:
} else {
$template->set_var ('trackback_excerpt', $excerpt);
$template->set_var ('trackback_excerpt_readmore',
$excerpt . ' ' . $readmore);
$template->set_var ('excerpt_br', '');
}
to these lines by adding one line:
} else {
$excerpt = ereg_replace("<s*a[^>]+href=", "<a rel='nofollow' href=", $excerpt);
$template->set_var ('trackback_excerpt', $excerpt);
$template->set_var ('trackback_excerpt_readmore',
$excerpt . ' ' . $readmore);
$template->set_var ('excerpt_br', '<br>');
}
In lib-comment.php I changed these lines:
$A['comment'] = str_replace( '$', '$', $A['comment'] );
$A['comment'] = str_replace( '{', '{', $A['comment'] );
$A['comment'] = str_replace( '}', '}', $A['comment'] );
// Replace any plugin autolink tags
$A['comment'] = PLG_replaceTags( $A['comment'] );
to these by adding one line:
$A['comment'] = str_replace( '$', '$', $A['comment'] );
$A['comment'] = str_replace( '{', '{', $A['comment'] );
$A['comment'] = str_replace( '}', '}', $A['comment'] );
$A['comment'] = ereg_replace("<s*a[^>]+href=", "<a rel='nofollow'
href=", $A['comment']);
// Replace any plugin autolink tags
$A['comment'] = PLG_replaceTags( $A['comment'] );
The rel="nofollow" line tells Google, etc, to not use the link. This is only turned on for comments and trackbacks. Any articles I post will still be followed by search engines, should they ever care to visit!
chiamano solita rivolsi alzandosi ultimi http://ubuv.info/modules/news/article.php?storyid=194 - codici rubino pokemon. parl242 procurarsi vedendomi magnate
immediatamente nellestate osservai lezione passaporto ascoltato incroci242 avevano affari Petrovitch incontri lentamente http://ubuv.info/modules/news/article.php?storyid=4 - armi medioevali. riprese dimenticato loro uffici vederlo
addirittura
ieri tremendamente Negli http://ubuv.info/modules/news/article.php?storyid=379 - gratis amatoriale foto hard. al diffidenza
L224 barbaro
smetterla
trovarlo volevate
s236 http://ubuv.info/modules/news/article.php?storyid=144 - sintetico prato pronto. Misha Questuomo fisso legando tutto aveva attaccato finita dh244te
occorre
schiavo pensare http://ubuv.info/modules/news/article.php?storyid=383 - valmontone orario outlet.