Google Images is indexing s9y captchas by truckload. I'd like to suggest the following patch to keep Google from indexing these:
Code: Select all
--- serendipity_event_spamblock.php.orig 2006-09-06 12:38:15.000000000 +0200
+++ serendipity_event_spamblock.php 2006-09-06 12:39:20.000000000 +0200
@@ -859,7 +859,7 @@
if (!isset($serendipity['POST']['preview']) || strtolower($serendipity['POST']['captcha'] != strtolower($_SESSION['spamblock']['captcha']))) {
echo '<br />' . PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC . '<br />';
if ($use_gd) {
- printf('<img src="%s" title="%s" alt="CAPTCHA" class="captcha" />',
+ printf('<img src="%s" title="%s" alt="CAPTCHA" class="captcha" rel="nofollow" />',
$serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/captcha_' . md5(time()),
htmlspecialchars(PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC2)
);
@@ -869,7 +869,7 @@
$this->random_string($max_char, $min_char);
echo '<div style="background-color: ' . $hexval . '">';
for ($i = 1; $i <= $max_char; $i++) {
- printf('<img src="%s" title="%s" alt="CAPTCHA ' . $i . '" class="captcha" />',
+ printf('<img src="%s" title="%s" alt="CAPTCHA ' . $i . '" class="captcha" rel="nofollow" />',
$serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/captcha_' . $i . '_' . md5(time()),
htmlspecialchars(PLUGIN_EVENT_SPAMBLOCK_CAPTCHAS_USERDESC2)
);