1. Understand the two controls
Robots.txt asks crawlers not to fetch specified paths. A noindex robots directive asks a crawler that can access a page not to include it in search results. They are not interchangeable controls.
A robots.txt rule controls fetching, not whether a URL can be known or listed. A noindex directive is read from a page or response that the crawler can access, so do not block that URL from fetching while expecting the directive to be seen.

2. Choose based on the goal
Use robots.txt when you need to manage crawler access to paths, such as repetitive crawl spaces. Use a page-level noindex when the page may be crawled but should not appear in search. Keep useful public pages crawlable.
Use robots.txt for crawl management, not as a reliable way to remove a page from search. If a page should remain accessible to visitors but leave search results, allow crawling and use an appropriate noindex directive.

3. Check whether Google can read the rule
If a URL is blocked in robots.txt, Google may not fetch its HTML to see a noindex tag. Avoid combining controls that hide the very instruction you need Google to process. Verify the setup with Search Console URL Inspection.
Check both the robots rule and rendered page directives with URL Inspection. Also review HTTP headers such as X-Robots-Tag when files or server responses may carry indexing instructions.

4. Review rules before publishing
Check robots.txt and page-level directives on the live domain, especially after a redesign or staging workflow. Remove temporary blocks when a page is intended to be discoverable, and recheck important URLs after deployment.
Before removing a staging block, confirm the production page is ready and canonicalized correctly. After deployment, test a few representative URLs and monitor the Page Indexing report for unexpected exclusions. See the Google indexing check guide for URL Inspection follow-up.

Related official guidance: Google Search Central: robots.txt and crawling.

