diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-11-10 00:35:12 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-11-10 00:35:12 +0300 |
commit | ded2e94ff79b47fd475b7f48f5d61c5872aa3b9e (patch) | |
tree | 9a11d0be1cf03db2fc08b16771ace270485169fa /core | |
parent | a0545edb8919984832863b1ee59e5cd3d5a1c6b3 (diff) |
Disallow indexing for all pages doing a redirect (#12263)
Diffstat (limited to 'core')
-rw-r--r-- | core/Url.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Url.php b/core/Url.php index a0d480da33..4554d23357 100644 --- a/core/Url.php +++ b/core/Url.php @@ -461,6 +461,7 @@ class Url || strpos($url, 'index.php') === 0 ) { Common::sendResponseCode(302); + Common::sendHeader("X-Robots-Tag: noindex"); Common::sendHeader("Location: $url"); } else { echo "Invalid URL to redirect to."; |