From 7f5abc51b8aed8aec96199bae4d4ae1b366bbe02 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 24 Sep 2016 11:40:43 +0200 Subject: [PATCH] Control search engine crawlers via X-Robots-Tag header instead of and robots.txt (#5098) This gives one central place to control these settings and really makes the page will not be listed in Google search results. --- .htaccess | 3 +++ CHANGELOG | 1 + skins/classic/templates/login.html | 1 - skins/larry/templates/login.html | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 906546b28..feea19a2c 100644 --- a/.htaccess +++ b/.htaccess @@ -50,6 +50,9 @@ Options -Indexes +# Disable page indexing +Header set X-Robots-Tag "noindex, nofollow" + # replace 'append' with 'merge' for Apache version 2.2.9 and later #Header append Cache-Control public env=!NO_CACHE diff --git a/CHANGELOG b/CHANGELOG index f9627887d..48000a871 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -39,6 +39,7 @@ CHANGELOG Roundcube Webmail - Managesieve: Support 'duplicate' extension [RFC 7352] - Managesieve: Unhide advanced rule controls if there are inputs with errors - Managesieve: Display warning message when filter form contains errors +- Control search engine crawlers via X-Robots-Tag header instead of and robots.txt (#5098) - Enigma: Add possibility to configure gpg-agent binary location (enigma_pgp_agent) - Enigma: Fix signature verification with some IMAP servers, e.g. Gmail, DBMail (#5371) - Enigma: Make recipient key searches case-insensitive (#5434) diff --git a/skins/classic/templates/login.html b/skins/classic/templates/login.html index 8b549df0d..0725373d3 100644 --- a/skins/classic/templates/login.html +++ b/skins/classic/templates/login.html @@ -2,7 +2,6 @@ <roundcube:object name="pagetitle" /> - diff --git a/skins/larry/templates/login.html b/skins/larry/templates/login.html index 557b029ee..2a45eda5c 100644 --- a/skins/larry/templates/login.html +++ b/skins/larry/templates/login.html @@ -2,7 +2,6 @@ <roundcube:object name="pagetitle" /> -