Only approved people can view the site
- Use
- Require authentication at the server, identity provider, or preview platform.
- Why
- A password wall blocks Googlebot and people without access.
noindexdoes not restrict access.
Find why a test site appears in Google, choose access control or noindex, and remove public results without creating a security gap.
If a staging site should be private, put authentication in front of it: noindex only hides a page from Google Search, and people can still open it. If the site is public but should stay out of Google, let Googlebot crawl it and return noindex. Use the Search Console Removals tool only as a temporary hide after the underlying rule is fixed.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
noindex does not restrict access.noindex meta tag or X-Robots-Tag header.noindex, or removing the content.noindex tag.Google says noindex controls whether a page appears in Google Search; users and search engines that don't support it can still access the page. Google's removal guidance says the most secure permanent option is to remove or update the content, and password protection is another. For pre-release product data, customer records, internal documentation, or unreleased pricing, use access control. See noindex when the directive is missing, and robots.txt blocks when a crawl rule is involved.
List preview domains, staging and dev subdomains, old hosting names, passwordless preview links, and any alternate hostnames. Check DNS and deployment settings, not just the current CMS project.
Use Search Console URL Inspection for known URLs and review the Page indexing report. A site: search can surface examples, but it is not a complete inventory. Google also tells you to protect or remove all variations of a URL, such as different capitalization or query strings that serve the same page.
Open a staging URL in a private browser window or make an unauthenticated HTTP request. Check the redirect chain, response code, page content, and X-Robots-Tag header.
Look for public sitemap entries, canonical tags pointing from production to staging, production links to previews, and copies under a second host. Protect or remove each exposed version.
enable the host's password, team access, or deployment protection on every preview environment, including branch previews.
add noindex in the rendered HTML head or send X-Robots-Tag: noindex for non-HTML resources. Leave the URL crawlable by Googlebot.
prevent deployment until authentication is active; strip real customer data and credentials from the copy as a separate security task.
remove the deployment and return an appropriate error, or redirect only when there is a relevant public replacement. Do not redirect every test URL to the production homepage.
remove preview links and staging URLs from production navigation, canonical tags, and the production XML sitemap.
HTTP/1.1 200 OK
(...)
X-Robots-Tag: noindex
(...)For a noindex approach, Google must be able to fetch the URL and read the tag or header. If robots.txt blocks the URL, remove that conflicting block. Google says a page may still appear because it hasn't been recrawled since you added the rule, and depending on the page's importance it may take months for Googlebot to revisit it. You can request a recrawl with URL Inspection, or use the Removals tool if you need it gone quickly.
From a logged-out browser, confirm private staging returns an authentication challenge or an access-denied response and does not reveal page content in the response body.
For URLs meant to remain public but out of Search, confirm the response is accessible and the rendered HTML or HTTP headers contain noindex. Use URL Inspection to see the HTML Googlebot received, and the Page indexing report to monitor pages where Googlebot extracted a noindex rule.
Crawl production links and sitemap entries for preview hostnames. Confirm production canonicals point to production URLs and internal links go to the intended environment.
Use Search Console's Removals tool only for an urgent temporary hide. Recheck the permanent access rule or noindex response after deployment, then monitor indexing reports as Google recrawls.
4 questions people ask next, answered from the sources on this page.
Use authentication if the staging site is private. For a public page that should not appear in Google, let Googlebot crawl it and return noindex; a robots.txt block prevents Google from reading that rule and is not access control.
No. noindex only blocks the page from showing up in Google search results. Users and search engines that don't support noindex can still access the page, so anyone with the URL can open it. Put confidential staging behind authentication.
First protect the site with authentication or make the public page return noindex. Then use the Search Console Removals tool for a temporary hide if the result is urgent. Google says it can remove a page from search results within a day, but requests last about 6 months and do not replace the permanent fix.
Yes, if it is restricted to authorized users. If it stays publicly accessible, ensure it cannot expose private data and that every intended-to-exclude page returns a crawlable noindex directive. Check preview subdomains and branch deployments too.
Run the free audit, then approve the fixes. Every change can be undone.