Getting found by Google · 2 min read

How to hide a page from Google search: noindex or password

Google says a robots.txt file is mainly for managing crawler traffic and is not a way to keep a page out of Google.

What it means for your Maryland business

To hide a page from Google search, add a noindex tag (a line of code that tells Google not to list the page) or put the page behind a password. Don't rely on robots.txt, the file that tells crawlers where they may go, because Google can still list a blocked address if other sites link to it. It counts most for Maryland businesses with pages meant for a few people: thank-you pages after a form, staff-only forms, price sheets for wholesale accounts, draft pages, old promotions, and member or patient portals.

An Annapolis catering company keeps a private menu and pricing page for wedding planners. The owner adds the page to robots.txt and assumes it's hidden. A planner links to it from a public vendor list, and Google lists the address, with no description, for anyone searching the company name. The better fix is either a noindex setting, so Google drops it from results, or a password, so only the planners can open it. On a site builder such as Wix, Google says to look for the platform's own search settings rather than editing code.

Treating robots.txt as a privacy tool is the most common misuse Google's page describes. Some other crawlers don't obey robots.txt at all, which owners often forget, and stacked rules can cancel each other out. Ask your developer to check that a page set to noindex isn't also blocked in robots.txt. Anything truly confidential, such as signed contracts or customer files, belongs behind a password on the server, which Google recommends for keeping information secure from crawlers.

If the hidden page holds personal information about your customers, that is a security question as well as a search one. Treat a password as the minimum for anything with names, account details or health information.

What to do this week

3 steps. Ticks are saved to Your plan on this device.

Open Your plan

01
List the pages you don't want in Google, such as thank-you pages, drafts and expired promotions.
02
Turn on your site builder's hide-from-search setting for those pages, or ask your web developer to add a noindex tag.
03
Put private files behind a password instead of relying on noindex or robots.txt.

In Google's words

“To keep a web page out of Google, block indexing with noindex or password-protect the page”

Google, exact quote · Robots.txt Introduction and Guide · checked against this page 2026-11-28

What Google says

Google says a robots.txt file is mainly for managing crawler traffic and is not a way to keep a page out of Google. A page blocked in robots.txt can still be indexed, without a description, if other pages link to it. To keep a URL out of results, Google points to password protection, a noindex meta tag or response header, or removing the page, and notes that site builders such as Wix may offer a search visibility setting instead.

Report an error