From 50ddb617bb5ade24817125a207fd407b98c520b8 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 11 Oct 2008 19:04:54 +0200 Subject: don't let Google and co index the RSS feed by setting X-Robots-Tag header FS#1467 darcs-hash:20081011170454-7ad00-9e724a621d886e298479bffdd529d604cbc07ae9.gz --- feed.php | 1 + 1 file changed, 1 insertion(+) (limited to 'feed.php') diff --git a/feed.php b/feed.php index 178f51d56..7150a8e1e 100644 --- a/feed.php +++ b/feed.php @@ -35,6 +35,7 @@ header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Type: application/xml; charset=utf-8'); + header('X-Robots-Tag: noindex'); if($cmod && (($cmod+$conf['rss_update']>time()) || ($cmod>@filemtime($conf['changelog'])))){ http_conditionalRequest($cmod); if($conf['allowdebug']) header("X-CacheUsed: $cache"); -- cgit v1.2.3