diff --git a/code/controllers/GoogleSitemapController.php b/code/controllers/GoogleSitemapController.php index 1cf4ba2..b6168df 100644 --- a/code/controllers/GoogleSitemapController.php +++ b/code/controllers/GoogleSitemapController.php @@ -33,6 +33,7 @@ class GoogleSitemapController extends Controller { Config::inst()->update('SSViewer', 'set_source_file_comments', false); $this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"'); + $this->getResponse()->addHeader('X-Robots-Tag', 'noindex'); $sitemaps = GoogleSitemap::get_sitemaps(); $this->extend('updateGoogleSitemaps', $sitemaps); @@ -59,6 +60,7 @@ class GoogleSitemapController extends Controller { Config::inst()->update('SSViewer', 'set_source_file_comments', false); $this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"'); + $this->getResponse()->addHeader('X-Robots-Tag', 'noindex'); $items = GoogleSitemap::get_items($class, $page); $this->extend('updateGoogleSitemapItems', $items, $class, $page);