From c5d7743377f063154298e7e62d8582b82faa4a8d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 21 Mar 2022 18:28:03 +0100 Subject: [PATCH] Add X-Robots-Tag header to studs.php and adminstuds.php files So that other pages can be indexed but not the ones with actual user-content. Signed-off-by: Thomas Citharel --- adminstuds.php | 1 + studs.php | 1 + 2 files changed, 2 insertions(+) diff --git a/adminstuds.php b/adminstuds.php index 03fc5d9..7e8718c 100644 --- a/adminstuds.php +++ b/adminstuds.php @@ -469,4 +469,5 @@ $smarty->assign('editedVoteUniqueId', ''); $smarty->assign('default_to_marldown_editor', $config['markdown_editor_by_default']); $smarty->assign('selectedNewVotes', $selectedNewVotes); +header("X-Robots-Tag: noindex, nofollow, nosnippet, noarchive"); $smarty->display('studs.tpl'); diff --git a/studs.php b/studs.php index e07f89d..ff01f64 100644 --- a/studs.php +++ b/studs.php @@ -260,4 +260,5 @@ $smarty->assign('editedVoteUniqueId', $editedVoteUniqueId); $smarty->assign('ValueMax', $poll->ValueMax); $smarty->assign('selectedNewVotes', $selectedNewVotes); +header("X-Robots-Tag: noindex, nofollow, nosnippet, noarchive"); $smarty->display('studs.tpl');