Settings

Navigate to Password Protect WordPress >> General tab from your admin dashboard and configure some common setting options.

PASSWORD PROTECTION

(1) Post Type Protection

This option allows you to password protect not only WordPress pages and posts but also other custom post types, such as “Products” created by WooCommerce plugin. Default: Pages & Posts.

(2) Cookie Expiration Time

This option determines how long your visitors can access the protected content without having to re-enter the password.

  • Default: 7 days
  • Maximum value: 365 days

Session cookies

If you want your users to be logged out right after closing their browser, use session cookies instead. To do so, add ?ppws=1 to the page URL.

For example, when users enter password “123456” to unlock this page https://passwordprotectwp.com/demo/protect-your-content-from-selection-and-copy/?ppws=1, they can keep their access (without re-entering the password) until the browser is closed. When opening the browser again, they will be asked to provide a password.

Please note that this feature will not work if users enable “Restore previous session” or “Continue where you left off” option in their browsers. These options might make the session cookie never expire.

(3) Whitelisted Roles

Allow specific user roles to access your private content without entering passwords. User role options include:

  • Admin users (default)
  • The post’s author
  • Logged-in users
  • Custom roles: select multiple user roles at once
  • No one: everyone including admins has to enter a password to access your protected content

(4) Password Protect Child Pages

Enable this option to protect all your child pages when their parent is protected. This allows you to set the same password to protect multiple pages at the same time. Default: OFF

(5) Password Protect Private Pages

Allow you to use one password to protect multiple pages and posts at the same time instead of password protecting them individually.

(6) Protected Content Visibility

This option allows you to control your protected content’s visibility. You can hide the content’s title and password form in different views, such as home page, categories page or search results page. Default: OFF

PASSWORD FORM CUSTOMIZATION

Our plugin allows you to customize our password form, including headline, description, error message or button text via WordPress Customerizer.

(1) Form Message

Allow you to customize the message above the password field that best describes your private content and website theme.

Below is a default password form.
default-password-protected-form

(2) Error Message

Allow you to customize the error message which displays when users enter wrong passwords.

ADVANCED OPTIONS

(1) Block Search Indexing

Prevent your protected content from being indexed by Google and other search engines. Default: ON

This feature helps stop Google and other search engines from indexing your password protected content. In other words, once a page or post is password protected, our plugin will add a noindex meta tag to its header so that your protected content won’t be crawled and listed on search results anymore. This option is enabled by default.

In case you password protect your entire site, all your content will NOT be indexed whether they’re protected or not. Unprotected pages excluded from the entire site protection will still be indexed though.

(2) Remove Data Upon Uninstall

Enable this option to remove all password and license information on your website once you uninstall the plugin. Default: OFF

Our Free and Pro version stores password information on different places on your database. If you want to completely remove our plugin’s data, you should enable the option, then remove the Pro first before the Free version.

Lasted updated on November 5, 2020