diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-10-11 19:04:54 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-10-11 19:04:54 +0200 |
commit | 50ddb617bb5ade24817125a207fd407b98c520b8 (patch) | |
tree | 0b6931058d2546ac989651282027f3a351fbe7eb /feed.php | |
parent | 24b0ff2a3a4fa0f9c845cf20b6f0a917c48b9a94 (diff) | |
download | rpg-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.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); |