How to Password Protect a Page in WordPress

How to Password Protect a Page in WordPress

To password protect a page in WordPress follow these simple steps.

  1. Edit the page or post you want to password protect.
  2. In the top left corner under the Publish option Edit the visibility.
  3. From there select Password protected and enter a password.
  4. That’s It, Publish and check out the change. Now when viewing the page or post you will be prompted for a password.

Here’s what a password protected page would look like from a visitor’s point of view.

All pages and posts that are password-protected will now be appropriately marked as so in WordPress so you can easily see which are protected in the list view.

When setting up a password protected page or post you may also notice the option to mark it as Private.

The Private visibility option in WordPress restricts the content to the person who created it. Or, anyone logged in with the Editor or Administrator role. So this isn’t really a valid option when it comes to restricting content.

There is, however, a way to protect your entire site from unwanted visitors, which we’ll cover next.