Hi, I have a content management system in Sitecore and I updated the robots.txt file for the test environment with below -
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?

Abhishek ChadhaPosted Dec 7, 2022, 12:42 PM
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
Jignesh KumarPosted Dec 7, 2022, 11:35 AM
Hi Abhishek,
All looks good, just you need to change User-Agent: * to User-agent:
https://searchfacts.com/robots-txt-allow-disallow-all/
Pankajkumar PatelPosted Dec 7, 2022, 10:50 AM
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!