TL;DR
- Use meta noindex on publicly linked login and password reset pages so crawlers read the directive and drop them from search results.
- Use robots.txt Disallow on authenticated app directories like /app/ and /api/ so bots do not waste crawl budget on private routes.
- Never block a noindexed login page in robots.txt, or search engines will index the bare URL from your navigation links.
- Serve HTTP 302 or 307 redirects when logged-out users hit private app URLs so search engines never cache /login as the canonical target.
At a glance
You run a site command in Google, inspect your domain, and find /login, /reset-password, and blank /app/dashboard shells sitting right above your feature pages. Search engines and AI assistants waste crawl budget on your authentication gates while your public marketing pages wait in the queue.
Fixing this takes two distinct controls: the noindex directive (set via a meta robots element or an X-Robots-Tag HTTP response header) and the Disallow rule inside robots.txt. One tells search engines to drop a page from search results after reading it. The other tells bots not to request the URL at all.
Noindex vs Disallow rules
| Criterion | Meta Noindex | Robots.txt Disallow |
|---|---|---|
| Prevents indexing in SERPs | Yes, once the page is fetched | No, linked URLs can still appear |
| Prevents crawling and saves budget | No, requires a page fetch | Yes, blocks requests before fetching |
| Requires page rendering | Yes, reads HTML or HTTP headers | No, evaluated at path level |
| Risk of URL-only indexation | None | High if linked from other pages |
| Best auth and app use case | Public login and password reset | Authenticated app and API trees |
How meta noindex works on login and signup pages
A noindex directive instructs search engines to exclude a specific URL from their search results. You deliver it either by placing a meta robots element in the document head or by returning an X-Robots-Tag: noindex HTTP header from your web server. According to Google's documentation on blocking indexing with noindex, Google drops the page from search results completely only after its bot fetches the URL and reads that directive.
Because your public navigation bar links to /login and /signup on every marketing page, bots discover these URLs constantly. Allowing bots to fetch the page and read a noindex directive guarantees the route stays out of search results without leaving anchor-text stubs behind.
When to keep signup indexed instead
Not every authentication screen belongs out of Google. Decide based on what buyers search for and what the page contains:
- Noindex
/loginand/signin: Existing users often type your brand name plus login into search, but your homepage or header sits one click away and provides a better landing page. - Noindex
/reset-passwordand/verify-email: Utility screens carry zero search value and look broken when surfaced in organic results. - Consider indexing
/signupor/register: If your registration page includes plan comparisons, FAQs, or social proof for bottom-of-funnel queries, leave it indexable with a self-referencing canonical URL. - Noindex bare
/signupforms: If the registration route is only an email input and a submit button with no descriptive copy, applynoindexso it does not compete with your pricing page.
How robots.txt disallow works on authenticated app routes
While noindex controls what appears in search results, robots.txt controls where bots are allowed to spend their requests. Under the RFC 9309 Robots Exclusion Protocol standard, a Disallow rule instructs compliant bots not to fetch matching URL paths on your host.
In a SaaS web application, authenticated workspaces, customer dashboards, and internal API endpoints sit behind routes like /app/, /dashboard/, or /api/. None of these routes serve public marketing content, yet broken relative links or leaked workspace URLs can send bots straight into them.
Why app directories need crawl blocks
Blocking authenticated directories in robots.txt protects both your server resources and your organic search visibility:
- Preserves crawl budget for public pages: Bots stop requesting thousands of parameterized dashboard URLs and spend those requests on your guides and product pages instead.
- Prevents headless rendering load: Modern search engines execute JavaScript in headless browsers, so blocking
/app/keeps bots from booting your client-side bundle on every unauthenticated route. - Keeps API endpoints out of crawl queues: Blocking
/api/and/graphqlensures bots never waste requests probing JSON endpoints linked in your frontend scripts.
The fatal mistake: combining noindex and robots.txt disallow on the same URL
The most common technical SEO mistake on SaaS sites is adding Disallow: /login to robots.txt while also placing a noindex meta tag on the /login page. Developers assume stacking both rules provides double protection. In reality, the robots.txt block defeats the noindex tag.
A Disallow rule stops a crawler from requesting the URL, so the bot never sees the noindex directive in the HTML or HTTP headers. As Google's robots.txt introduction guide explains, a page disallowed in robots.txt can still be indexed if linked from other sites, and you should use noindex or password protection instead to block indexing.
When your header, footer, or an external site links to a disallowed /login page, Google indexes the URL from those incoming links without any page description.
Watch out: Never disallow a URL in
robots.txtif that URL already appears in search results or receives internal links from your public site. Leave it crawlable inrobots.txtand serve anoindexdirective so bots can read the instruction and drop the page.
What happens step by step
Compare the two paths a search engine takes when it discovers a link to an authentication route on your homepage:
- Path A (Crawl allowed + Meta noindex): The bot sees
/loginin your navbar, checksrobots.txt, sees fetching is permitted, requests/login, readsnoindex, follow, and drops/loginfrom the search index cleanly. - Path B (Disallowed in robots.txt + Meta noindex): The bot sees
/loginin your navbar, checksrobots.txt, seesDisallow: /login, halts before making the HTTP request, never sees yournoindextag, and indexes the bare/loginURL in search results based on your navbar link.

How to configure login, signup, and password reset routes
Public authentication pages sit at the boundary between your marketing site and your product. Because visitors reach them from your navigation bar, configure them so bots can fetch the response, verify the status code, and follow your indexing rules without hitting redirect traps.
Apply these four technical rules across your /login, /reset-password, and single sign-on callback routes:
- Serve HTTP 200 OK with
noindex, follow: Return a standard200status code on/loginand/reset-passwordalongside a meta robotsnoindex, followtag or anX-Robots-Tag: noindex, followHTTP header. - Keep authentication routes out of XML sitemaps: Sitemaps list only canonical, indexable URLs; including
/logininsitemap.xmlwhile servingnoindexsends conflicting signals and triggers Search Console errors. - Strip session and return-URL query parameters: Links like
/login?returnTo=/app/billingor/login?redirect=/settingscreate hundreds of duplicate URLs; add a canonical link element pointing to the clean/loginURL. - Render the directive in initial server HTML: If your login screen is part of a client-side single-page application, return
X-Robots-Tag: noindexin the HTTP response headers from your edge or CDN so bots do not have to execute JavaScript to see it.
Tip: Using an
X-Robots-Tag: noindex, noarchiveHTTP response header at the reverse proxy or middleware layer works on HTML pages, JSON responses, and OAuth redirect endpoints alike, regardless of how your frontend framework renders the DOM.
How to handle authenticated app directories and redirects to login
How you separate your application from your marketing pages determines how simple your robots.txt file can be. Teams that host the product on a dedicated subdomain like app.example.com can serve a robots.txt file on that subdomain that disallows / entirely, plus an X-Robots-Tag: noindex header on every response as a backup.
When your marketing site and web app share a single domain (example.com/ for marketing and example.com/app/* for the product), path prefixes do the heavy lifting. Unauthenticated requests to /app/settings usually trigger a 302 or 307 temporary redirect to /login?next=/app/settings.
Pair those temporary redirects with path-specific Disallow rules in robots.txt and an X-Robots-Tag: noindex HTTP header across your private routes. That way, if a bot bypasses robots.txt or follows a redirect to /login, the response still carries an explicit noindex signal. When organizing shared-domain routes, audit every path prefix where authenticated views or workspace slugs resolve so no private directory slips past your robots.txt rules.
SaaS route SEO rules
| Route pattern | HTTP status (logged out) | Meta or X-Robots-Tag | robots.txt rule |
|---|---|---|---|
| /login, /signin | 200 OK | noindex, follow | Allow |
| /signup (with copy) | 200 OK | index, follow | Allow |
| /reset-password | 200 OK | noindex, nofollow | Allow |
| /app/*, /dashboard/* | 302 or 307 to /login | noindex, nofollow | Disallow: /app/ |
| /api/*, /graphql | 401 or 403 | noindex | Disallow: /api/ |
| /admin/*, /internal/* | 401, 403, or 302 | noindex, nofollow | Disallow: /admin/ |
How Scobly checks robots.txt and indexing tags on your site
Catching a conflict between robots.txt and meta robots headers before it hurts rankings requires continuous verification across both raw HTML and rendered DOM states.
Indexing Doctor inspection: When examining a non-indexed page, Indexing Doctor fetches and renders the URL using Googlebot's smartphone user agent to inspect what Google receives.
AI search crawler checks: Each weekly Site health check tests up to 20 pages against four AI crawler user agents (
OAI-SearchBot,ChatGPT-User,PerplexityBot, andClaude-SearchBot) to verify that AI search assistants can read your public pages.
Which to choose
Use the rule that matches how bots discover the route and whether you need to save crawl requests or remove a linked URL from search results:
- Publicly linked authentication forms (
/login,/signin,/reset-password): Choose metanoindex, follow(orX-Robots-Tag: noindex, follow) and leave the routes allowed inrobots.txtso bots can read the directive and keep them out of search results. - Authenticated application trees (
/app/*,/dashboard/*,/admin/*): ChooseDisallowinrobots.txtcombined with302or307redirects for logged-out visitors and anX-Robots-Tag: noindexresponse header as a fallback. - Internal APIs, webhooks, and health endpoints (
/api/*,/graphql,/webhooks/*): ChooseDisallowinrobots.txtalongsideX-Robots-Tag: noindexheaders and appropriate401or403status codes. - High-converting registration pages (
/signup,/start-trial): Leave bothrobots.txtallowed andindex, followenabled when the page includes unique product copy, pricing context, or social proof.
FAQ
How do I remove a /login page that is already indexed in Google?
First, make sure /login is not disallowed in your robots.txt file so Googlebot can fetch it. Next, add a noindex meta tag or X-Robots-Tag: noindex HTTP header to the /login response and request a recrawl in Google Search Console.
Should I put /login in my XML sitemap if it has a noindex tag?
No, your XML sitemap should only contain canonical URLs that return HTTP 200 and are meant to be indexed. Including a noindexed /login route in sitemap.xml triggers coverage warnings in Google Search Console.
Does blocking /app/ in robots.txt secure private application data?
No, robots.txt is a public file that anyone can read, and malicious bots ignore its rules completely. Always enforce server-side session authentication and return 401, 403, or a 302 redirect to /login on every private route.