Hi, I have a content management system in Sitecore and I updated the robots.txt file for the test environment with below -
Code
User-Agent: *
Disallow: /but somehow it gets indexed on google and bing how I can overcome this by not indexing the test environment on these browsers?


Pankajkumar PatelRank #181 · 13.4K reputationPosted Dec 7, 2022, 5:50 AM EST
Hi Abhishek Chadha,
Remember to use all lower case for the filename: "robots.txt", not "Robots.TXT.
Rules are case-sensitive and should be:
For more details:
Hope this will help you!
Jignesh KumarRank #91 · 22.9K reputationPosted Dec 7, 2022, 6:35 AM EST
Hi Abhishek,
All looks good, just you need to change User-Agent: * to User-agent:
https://searchfacts.com/robots-txt-allow-disallow-all/
Abhishek ChadhaRank #402 · 6.2K reputationPosted Dec 7, 2022, 7:42 AM EST
the strange thing is that I updated my CD site with both capital User-Agent and CM site User-agent and both the sites get indexed