summaryrefslogtreecommitdiff
path: root/feed.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-10-11 19:04:54 +0200
committerAndreas Gohr <andi@splitbrain.org>2008-10-11 19:04:54 +0200
commit50ddb617bb5ade24817125a207fd407b98c520b8 (patch)
tree0b6931058d2546ac989651282027f3a351fbe7eb /feed.php
parent24b0ff2a3a4fa0f9c845cf20b6f0a917c48b9a94 (diff)
downloadrpg-50ddb617bb5ade24817125a207fd407b98c520b8.tar.gz
rpg-50ddb617bb5ade24817125a207fd407b98c520b8.tar.bz2
don't let Google and co index the RSS feed by setting X-Robots-Tag header FS#1467
darcs-hash:20081011170454-7ad00-9e724a621d886e298479bffdd529d604cbc07ae9.gz
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php1
1 files changed, 1 insertions, 0 deletions
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");