Major search engines will not index squirrelmail-pages. This serves the
following points:
- The search engines' cache/index does not get polluted with useless data;
indexing a webmail client is not of interest. We should advise search
engines that they skip us.
- Will not make a squirrelmail install findable through google. This has
an advantage when someone is looking for vulnerable webmail systems to
exploit (i.e.: search for "SquirrelMail" in google, and try every system
you find with a known exploit).
A robots.txt is not a solution because that has to be in the root of a
document tree, which squirrelmail does not have to be.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9187
7612ce4b-ef26-0410-bec9-
ea0150e637f0
- Fixed checking for quota when appending to Sent folder (#1172694).
- Create a generic function to empty a folder tree, thanks to
Randy Smith (#1145578).
+ - Add robots noindex/nofollow meta tag to SquirrelMail generated pages.
Version 1.5.0
--------------------
} else {
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
}
- echo "\n\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) . "\n<head>\n";
+ echo "\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) .
+ "<head>\n<meta name=\"robots\" content=\"noindex,nofollow\">\n";
/*
* Add closing / to link and meta elements only after switching to xhtml 1.0 Transitional.
do_hook('generic_header');
}
- echo "\n<title>$title</title>$xtra\n";
+ echo "<title>$title</title>\n$xtra\n";
/* work around IE6's scrollbar bug */
echo <<<ECHO
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
+ <meta name="robots" content="noindex,nofollow">
<title>SquirrelMail configtest</title>
</head>
<body>
$output = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\">\n".
"<html><head>\n" .
+ "<meta name=\"robots\" content=\"noindex,nofollow\">\n" .
"<title>$org_title</title>\n".
"</head>";