From f9f738dc5a91f1fab0a05e6d4a3654f98817597e Mon Sep 17 00:00:00 2001 From: kink Date: Mon, 4 Apr 2005 12:58:12 +0000 Subject: [PATCH] Add a META robots noindex/nofollow tag to SquirrelMail generated output. 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 --- ChangeLog | 1 + functions/page_header.php | 5 +++-- src/configtest.php | 1 + src/webmail.php | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9d5ff534..278ac313 100644 --- a/ChangeLog +++ b/ChangeLog @@ -292,6 +292,7 @@ Version 1.5.1 -- CVS - 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 -------------------- diff --git a/functions/page_header.php b/functions/page_header.php index 37d6c7dd..d62321fa 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -41,7 +41,8 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = true } else { echo ''; } - echo "\n\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) . "\n\n"; + echo "\n" . html_tag( 'html' ,'' , '', '', 'lang="'.$squirrelmail_language.'"' ) . + "\n\n"; /* * Add closing / to link and meta elements only after switching to xhtml 1.0 Transitional. @@ -72,7 +73,7 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = true do_hook('generic_header'); } - echo "\n$title$xtra\n"; + echo "$title\n$xtra\n"; /* work around IE6's scrollbar bug */ echo << + SquirrelMail configtest diff --git a/src/webmail.php b/src/webmail.php index 70e61fcf..51d45302 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -82,6 +82,7 @@ $err=set_up_language(getPref($data_dir, $username, 'language')); $output = "\n". "\n" . + "\n" . "$org_title\n". ""; -- 2.25.1