How To Password-Protect Pages On Your WordPress Website

by David Trounce

There are several reasons you might want to password protect pages on your WordPress (WP) site, including:

How To Password-Protect Pages On Your WordPress Website image 1

Below are several ways to password protect single pages or posts, specific categories, or your entire WordPress website.

Table of Contents

    Password Protect a Page Or Post In WordPress

    The easiest way to restrict access to a post or page is to edit the visibility settings in WP. 

    Password Protect Post Categories in Your WordPress Site

    If you have specific categories of posts on your site that you want to protect with a password, use the Access Category Password plugin.

    Download, install, and activate the plugin.

    Choose to restrict access to posts within a specific category by assigning a password. Both the excerpt and content of the posts are replaced by a form that visitors will need to complete to gain access.

    WP generated feeds are modified. You can define a description in the settings that users will see. The parameters are defined as:

    The other settings for this password protect plugin are defined below:

    How To Password Protect Part Of a WordPress Post Or Page

    You can also password protect only part of a public page or post with another WP plugin called Passster – Password Protection.

    Just as you do for all WP plugins, download, install, and then activate it.

    Inside your WP dashboard, go to the Settings of the plugin. Create a shortcode and a Password or automatically have it generated for you.

    In your WP editor, paste the shortcode in the section you want to protect and write the content. 

    Visitors will see all your content except what you have put inside the shortcode section.

    Password-Protect Your Entire WordPress Site

    To password protect your entire WordPress site, you can again use a third-party plugin. There are several password-protect plugins from which to choose. 

    We will discuss the Password Protected free plugin by Ben Huson.

    Keep in mind that the plugin will only protect your WP site. If someone has a direct link to a file or image on your server, they will be able to see that file.

    As you can see, there are several ways to password-protect your WordPress site. For individual posts or pages, you can use WordPress built-in functionality. Other parts, sections, or the entire site will need third-party plugins.

    Exit mobile version