On this page
- Password, private or whole site: which one do you need?
- How to password protect a WordPress page or post
- When a WordPress private page makes more sense
- Choosing a WordPress password protect plugin for the whole site
- Locked out after turning protection on
- Protect a WordPress directory with a password at the host
- What none of these options protect
- Getting help with it
- Frequently asked questions
A WordPress password protect plugin is what you use to lock the whole site behind one shared password, while a single page or post can be locked with no plugin at all, using the Visibility setting under Publish. Private status works differently: only logged-in users with the right role can see it. Choose by who needs to get in, people holding a password or people holding accounts.
Each option has a blind spot, and most of the trouble we see comes from assuming a password does more than it does. If you’d rather not keep watch over another plugin yourself, our website care and maintenance plans include the weekly updates that keep it current. First, the options themselves.
Password, private or whole site: which one do you need?
Start with the audience. A client previewing one page, a members-only download, a site that isn’t ready to launch and a folder of internal files are four different jobs.
| Option | Who gets in | What it does not stop |
|---|---|---|
| Page or post password (built in) | Anyone who knows the password | Editors and administrators see it in the Edit screen without the password |
| Private status (built in) | Logged-in users with permission, meaning Editors and Administrators | Those same users can modify the content or make it public |
| Whole-site plugin | Anyone with the shared password | Free version has no per-page rules; REST API and feeds are blocked unless you allow them |
| Host folder password | Anyone with the folder login, for web requests | FTP, SFTP and Web Disk access |
Everything else below is detail on those four options.

How to password protect a WordPress page or post
WordPress.org documents the three visibility choices as Public (the default, viewable to all), Password Protected and Private. The option sits under Publish on the Edit screen. That documentation describes the Classic Editor, and the block editor lays the screen out differently, so look for the same three words rather than the same position.
- Open the page or post you want to lock.
- Find Visibility in the Publish area.
- Choose Password Protected and type a password.
- Click Update.
- Open the page in a private browser window and confirm you get a prompt.
Visitors then see the title plus a password box, and nothing else until they enter it. That’s the simplest way to password protect a WordPress page, and for a one-off client preview it’s usually enough.
Don’t reuse a password you use anywhere else. The documentation doesn’t say how the page password is stored, and it states plainly that editors and administrators can open protected posts in the Edit screen without it. Treat it as a shared, low-grade key.
When a WordPress private page makes more sense
Private status is for content only your team should read. The post becomes “Privately Published,” stays out of article lists, and a visitor who guesses the URL still can’t see it.
The people who can see it are logged-in users with permission, which means Editors and Administrators. The WordPress documentation warns that those users can see private posts in the Edit list, change them, “or even make them public.”
So a private page is only as private as your user list. Before you rely on it, look at who holds those roles. Our guide to WordPress user roles and spotting a rogue admin walks through that check.
Choosing a WordPress password protect plugin for the whole site
Hiding an entire site isn’t part of core WordPress. The documentation says so directly, and names Page Restrict, Force Login and jonradio Private Site as example plugins. That page was last updated in January 2023, so check each plugin’s current listing before installing any of them.
The one we’d look at first for a shared-password gate is Password Protected. It has more than 300,000 active installs and sits at version 2.8.7, tested up to WordPress 7.1.5. It requires WordPress 6.5+ and PHP 7.4+. It was last updated on November 18, 2026, which is a good sign for a plugin that sits in front of your whole site.

The free version includes IP whitelisting, Google reCAPTCHA, passwordless admin access and activity monitoring. The listing also notes some limits:
- The REST API is blocked until the password is entered, unless you change an admin option.
- Feeds are disabled while protection is on, unless you tick “Allow Feeds.”
- Per-page and per-post protection, multiple passwords, bypass links and WooCommerce support are Pro-only. The listing promotes that paid tier, so weigh it accordingly.
The decision is shared password versus individual logins. Password Protected is the first kind: everyone gets the same key. If you need to know who’s in, or cut one person off without changing the password for everyone, you want a login-based plugin instead.
This is the right tool for a pre-launch site or a staging copy. If that’s your case, our walkthrough on creating a WordPress staging site covers the setup. One caution: a password gate hides content, it doesn’t defend the site. For that, see our comparison of the best WordPress security plugin options.
Locked out after turning protection on
It happens. The plugin’s own page says that if you’re locked out, you have to remove the plugin folder over SFTP or SSH. Connect, go to wp-content/plugins, and rename or delete the password-protected folder. The site opens again immediately.
Before you enable any whole-site gate, test the passwordless admin access option and keep an SFTP login handy. Five minutes of checking beats an hour of recovery.
Protect a WordPress directory with a password at the host
If your host runs cPanel, Directory Privacy can lock a specific folder. Anyone requesting that folder through a website gets a login prompt. cPanel’s documentation says the feature modifies htaccess and htpasswd configurations, and subdirectories inherit the parent’s protection.
Two catches. It only restricts requests made through a website, so FTP, SFTP and Web Disk aren’t covered. And if creating a user fails, cPanel suggests the directory permissions may need to be 0700.
WordPress adds a wrinkle. Namecheap’s knowledge base says that on a WordPress install with permalinks enabled, the cPanel Password Protect Directories option and a plain .htpasswd approach don’t work, and protection then means editing .htaccess instead. It also advises keeping the .htpasswd file above the web root, for example /home/cpanelusername/.htpasswd.
cPanel’s own page carries no such warning, and the two sources don’t reconcile. It’s likely down to the host, so protect the folder, then test it from a private window, including a page deeper in the folder. If you want to protect a WordPress directory with a password and it doesn’t behave, your host’s support docs are the place to check next.
What none of these options protect
- People with elevated accounts. Editors and administrators don’t need the password and can see protected content in the Edit screen.
- Search results. Nothing in WordPress’s documentation promises protected or private content stays out of search results or sitemaps, so don’t use a password as a way to remove a page from Google.
- Uploaded files. The core documentation doesn’t say whether a protected page’s attached files and direct upload URLs are covered, and the plugin listing doesn’t describe file protection either. Paste a file’s direct URL into a private window and see what happens.
- Server-level access. A folder password won’t stop someone with FTP or SFTP credentials.
None of this replaces solid login hygiene. Our piece on WordPress login security covers the account side.
Getting help with it
Most password setups take minutes. The trouble comes later: a plugin update changes behavior, a feed or form stops working behind the gate, or nobody remembers which folder has an .htaccess rule. We handle that as part of website care, with weekly updates and a check that the site still works after each one. If you’re stuck on a lockout or a folder password that won’t stick, tell us your host and what you’ve tried.
Frequently asked questions
How do I password protect a single WordPress page?
Open the page, find Visibility in the Publish area, choose Password Protected, enter a password and update. The WordPress documentation describes this for the Classic Editor, and the block editor places it differently.
What’s the difference between password protected and private?
Password protected shows the title and a password box to any visitor. Private hides the content from everyone except logged-in users with permission, and a guessed URL won’t reveal it.
Can editors and administrators see a protected page without the password?
Yes. WordPress.org’s documentation says they can see protected and private posts in the Edit screen and don’t need the password.
Does a whole-site password plugin block the REST API and feeds?
The Password Protected plugin blocks the REST API until the password is entered, unless you allow it in the admin options. Feeds are disabled unless “Allow Feeds” is checked.
Do I need a plugin, or can I use my host’s folder password?
A host folder password works for a specific directory, but some hosts report conflicts with WordPress permalinks. A plugin is easier for a whole site, so test whichever you choose.
Sources
- WordPress.org Documentation: Set blog content visibility (Classic Editor) (last updated 2023-01-11)
- WordPress.org Plugin Directory: Password Protected (last modified 2026-11-18, plugin listing that promotes a Pro tier)
- cPanel Documentation: Directory Privacy (2026-07-08)
- Namecheap Knowledgebase: How to password protect files and directories (last updated 2025-07-16, vendor documentation)

