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 <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-03-21 18:28:03 +01:00
parent 125045bb74
commit c5d7743377
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 2 additions and 0 deletions

View file

@ -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');