From 8877a380817810599e1405c9ab6078c772458c63 Mon Sep 17 00:00:00 2001 From: Stephan Bauer Date: Mon, 13 Feb 2023 23:26:57 +0100 Subject: [PATCH] Add header noindex, nofollow --- action.php | 1 + 1 file changed, 1 insertion(+) diff --git a/action.php b/action.php index 5c4b9fd..faa2490 100644 --- a/action.php +++ b/action.php @@ -557,6 +557,7 @@ protected function sendPDFFile($cachefile) { header('Content-Type: application/pdf'); header('Cache-Control: must-revalidate, no-transform, post-check=0, pre-check=0'); header('Pragma: public'); + header('X-Robots-Tag: noindex, nofollow'); http_conditionalRequest(filemtime($cachefile)); global $INPUT; $outputTarget = $INPUT->str('outputTarget', $this->getConf('output'));