In this article8 sections
Sometimes a page is not meant for everyone: a client proposal, a download for customers, a draft, or a members-only tutorial. WordPress has a built-in way to lock a page or post behind a password, and it takes under a minute.
Step by step: password-protect a page or post
- Open the page or post in the editor.
- In the right-hand sidebar, find Visibility (shown under the Summary panel in the block editor).
- Click it and choose Password protected.
- Type a password. Use a strong one that you do not use anywhere else.
- Click Update or Publish.
- Open the page in a private window to confirm that the password prompt appears.
Visitors who enter the correct password see the page, and WordPress remembers them with a cookie. By default, the cookie lasts 10 days.

Private vs password protected
The same Visibility menu has two other choices worth knowing:
- Public: anyone can see it.
- Private: only logged-in users with editing rights, such as administrators and editors, can see it. Visitors get a “not found” page.
- Password protected: anyone with the password can see it.
Choose Private when only your team needs access. Choose Password protected when you need to share with outside people, such as clients.
Limits you should know about
The built-in feature is simple, which means it has limits:
- One password per page. Everyone shares it, so you cannot tell who viewed the page, and you cannot revoke one person’s access without changing the password for all.
- Passwords travel as typed text. Use HTTPS on your site, and never use the protected page for highly sensitive information such as banking details or medical records.
- The title is visible. In archives, search, and feeds, the post title may still show with a “Protected:” prefix. Use a neutral title if the title itself is sensitive.
- Files may not be protected. If you upload a PDF or image to the Media Library, anyone with the direct file link can open it, even without the page password.
- Search engines. Search engines cannot read the protected content, which is usually what you want. Do not expect it to rank.
When to use a plugin instead
If you need different passwords, per-user access, expiry dates, or block-by-page rules, a plugin gives you more control. The Pro version of Disabled Source, Disabled Right Click and Content Protection lists a Page Block by Password feature. Membership plugins are a better fit when you want real accounts, subscriptions, or paid access.
Tips for managing protected content
- Put the password in your password manager and share it through a secure channel, not a public message.
- Change the password when the project ends.
- Do not reuse your admin password.
- Add the page to a menu only if you want visitors to find it. Otherwise, share the link directly.
- Check the page on your phone, too, since mobile browsers sometimes handle cookies differently.
Protecting what visitors see after they log in
Even a protected page can be copied by someone who has the password. If that matters, combine it with content protection deterrents such as blocking right-click and copy shortcuts.
Frequently asked questions
Can search engines see password-protected content?
No. Search engines cannot get past the password, so the content will not be indexed or rank.
How long does WordPress remember the password?
By default, the cookie lasts 10 days. After that, the visitor must enter the password again.
Is password protection enough for sensitive documents?
No. For sensitive information, use individual accounts, a membership plugin, or a secure file-sharing service, and remember that files in the Media Library may be reachable by direct link.
Summary
For quick, low-risk privacy, WordPress’s built-in password protection is enough. For anything sensitive, use accounts, a membership plugin, or a dedicated file-protection method. And remember that files in your Media Library can still be reached by their direct link.
Disclosure: I develop the plugin mentioned in this guide.












