Can Google index password-protected or private WordPress posts?
Partly. A password-protected post still has a public address that returns 200 and shows its title, so Google can index the URL and title but never the hidden content. A private post returns a 404 to anyone not logged in with permission, so it cannot be indexed at all.
What a crawler sees on a protected post
Setting a post's visibility to Password protected changes what is displayed, not whether the address exists. A visitor or crawler without the password gets:
- an HTTP 200 response at the normal permalink;
- the title, with Protected: in front of it;
- a short password form where the content would be;
- no comments and no content in the feed;
- in archives, the line "There is no excerpt because this is a protected post." in place of an excerpt. Core's own site search leaves protected posts out for logged-out visitors.
WordPress does not add a noindex tag to these pages, and its core sitemap lists them, because the sitemap includes every published post and a protected post is still published.
The result in search can be an entry reading "Protected: Client pricing 2026" with a snippet taken from the form or the surrounding template. The content is safe. The title, the slug and the fact that the page exists are not.
Private posts are a different thing
Private visibility is stricter. A private post is only served to logged-in users whose role allows it, by default editors and administrators. For everyone else, including every crawler, the address returns 404, exactly as if the post did not exist. It is left out of archives, feeds and the sitemap, because all of those list published posts only and private is its own status.
| Password protected | Private | |
|---|---|---|
| Status code for the public | 200 | 404 |
| Title visible | Yes, prefixed "Protected:" | No |
| Listed in archives and feed | Yes, without content | No |
| In the core sitemap | Yes | No |
| Can Google index the URL | Yes | No |
| Who can read it | Anyone with the password | Logged-in users with permission |
If a post was public and indexed before you made it private, it will drop out of Google as the 404 is recrawled.
Keeping protected pages out of search
If the title or existence of a protected page should not be public, the password is not enough. Add one of these:
- Noindex the page. This is the right tool: the page stays reachable for people with the link and password, and search engines are told not to list it. In Hydrogen SEO, switch on No Index in the post's SEO settings sheet. Do not also block it in robots.txt, or the noindex will never be read.
- Give it a neutral title and slug. "Protected: Documents" at
/documents-7f3k/reveals less than a client's name. - Use Private instead, if the readers all have accounts on the site.
- Keep it out of the sitemap. Hydrogen SEO's sitemap always leaves password-protected posts out, and omits anything set to noindex.
For material that must not leak at all, a WordPress post password is the wrong protection. It is a single shared secret stored with the post, with no accounts or audit trail. Use a membership system or keep the files off the public site.
Common mistakes
Protecting a page to "hide it from Google". It hides the content, not the page. Use noindex for that purpose, and a password only when readers need a gate.
Password-protecting indexed content. If a page ranks and you protect it, Google's next crawl finds a title and a form. The page will lose its rankings for the hidden text, and may linger as a thin result. If the change is permanent, noindex it too.
Assuming files are protected. The password covers the post. Images and PDFs attached to it sit in the uploads folder at their own public URLs, reachable by anyone who has the link and indexable if linked from elsewhere.
Password-protecting a staging site page by page. Use HTTP authentication at the server for the whole site instead, which returns 401 to crawlers before WordPress loads.
To see what Google has, search site:example.com "Protected:", then check any result with URL Inspection.
Common questions
Does the "Protected:" prefix appear in Google?
It can. The prefix is part of the title WordPress prints, so an indexed protected post usually shows it in the result.
Can Googlebot enter a post password?
No. Crawlers do not submit forms, so the protected content is never fetched or indexed.
Are private posts visible to subscribers?
Not by default. Reading private posts is a capability of editors and administrators; other roles get a 404 unless a plugin grants it.
Will a noindexed protected page still work for people with the link?
Yes. Noindex only affects search listings. Anyone with the URL and password can open the page as before.