Password Protect Pages

Plugin Banner

Password Protect Pages

by Jess

Download
Description

A simple plugin that allows you to restrict access to certain pages on your website to only logged in users quickly and easily. This plugin can be useful to those who do not need overly complicated membership systems, and to those who want to password protect a group of pages but don’t want to password protect each page individually, forcing the users to log into each one.

It is simple to use. First select whether you want to password protect all pages by default, and want to choose which pages are public. Or choose to allow all pages to be public by default, and choose which pages are password protected.

When non-logged in users try to access a password protected page they will be redirected to the WordPress login screen. Once logged in, they will be redirected back to the requested page and will not be asked to log in again on subsequent pages.

  1. Upload password-protect-pages.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to Settings –> Password Protect Pages to configure the plugin options
  1. Password Protect Some:  choose which pages to protect.  Enter page IDs separated by commas

    Password Protect Some: choose which pages to protect. Enter page IDs separated by commas

  2. Password Protect All:  choose which pages to allow to be public.  Enter page IDs separated by commas

    Password Protect All: choose which pages to allow to be public. Enter page IDs separated by commas

How do I find the ID of a page?

You can read an explanation of how to do that here: https://jessnunez.dev/how-to-find-page-id/

Simple, powerful protection

By leslielatham on July 22, 2020

When we added a second site and needed single sign on, we also wanted to password protect the new site pages, just as we do the original site. Our sites are used by an independent association of mostly nontechnical users, and we needed to keep the sign on easy for them, and private. The behavior is great and worked perfectly the first time on all pages. Highly recommend!!

10/10 would use again

By Perry the platypus (uhhhhhh) on June 21, 2019

Best password protector I have ever used!

1.0

  • Initial release
Back to top