title: Adding X-Robot-Tag to response header in Sitecore 8
body: <p>I have got a website setup in Sitecore. My sitemap is an item in sitecore which is under the homepage. </p>
  
  <p>I am able to access my sitemap by typing following URL:
     <a href="http://example.com/xmlsitemap" rel="nofollow">http://example.com/xmlsitemap</a>
  Whereas xmlsitemap is the name of the item in Sitecore. Which has the rendering to get the XML sitemap given below:</p>
  
  <pre><code>XmlDocument SiteMap = new XmlDocument();
  SiteMap.Load(System.Web.HttpContext.Current.Server.MapPath("~/") + "//SiteMap//Sitemap-" + Sitecore.Context.Site.SiteInfo.Name + ".xml");
  return this.Content(SiteMap.InnerXml, "text/xml");
  </code></pre>
  
  <p>I have got multiple site setup in sitecore. That's why I created sitemap as an Item in sitecore. So that it gets the right sitemap for each website. </p>
  
  <p>The issue is when I submit this sitemap to google using the URL. It is indexing the sitemap URL as well and it is appearing in the actual results. </p>
  
  <p>I know I can stop google from indexing my sitemap by adding X-Robot-Tag: noindex. But I can't do it IIS because it is not an item inside the website directory. </p>
  
  <p>Any ideas on how that can be achieved? </p>