Hello,
How do we prevent search engines from indexing our XML sitemap file?
Any ideias?
Thanks!
Hey @UNLda
You can use the following tag to achieve that:
X-Robots-Tag: noindex
Could we add <META NAME="robots" CONTENT="noindex"> on a XML file?
Hi
I think you can add in robots.txt
Disallow: /sitemap.xml
Can you tell us why you want to prevent sitemap indexing ? Does it show up in search engine results ?
To prevent search engines from indexing your sitemap file, you can use the robots.txt file to disallow it. Here’s how you can do it:
Disallow: /sitemap.xml
This tells search engines not to crawl or index the sitemap file located at /sitemap.xml.
in your server configuration (e.g., .htaccess for Apache) to prevent indexing.