After reading it, you will learn how to password protect a WordPress page or your entire site. The methods explained include protecting a page from the dashboard settings or protecting your site using a plugin. WordPress offers several available plugins to password protect your site; at the end of this article, you can read a summary of some of them.
This tutorial to protecting a WordPress page includes screenshots for all described steps, making it easy for WordPress-level users to follow them.
Password protect a single WordPress page:
The first section of this tutorial explains how to protect pages individually using the dashboard settings.
First, you need to select the page you want to protect using a password. Move your mouse cursor over Pages on the left menu, and press All Pages on the displayed submenu (Pages>All Pages).
All your posts will show up. Move your mouse cursor over the post you want to protect and press the Edit button as shown below.
On the post edition page, press the Status & Visibility option on the right menu Page tab as shown below.
To protect the page, press the Public button, shown in the screenshot below.
The box shown below will allow you to select between three options: Public, Private, and Password Protected. Choose the Password Protected option and type the password for the page.
To apply for password protection, press the Publish button, shown in the screenshot below.
Anyone was trying to access that page will need to type the password you defined.
Password protect an entire WordPress site:
You also can set a password to protect your entire WordPress site. Using the method explained below, your site will show the home page but require a password when visitors try to access a subpage.
I will use the Password Protected plugin for this section, but you can choose any of the available alternatives listed after the following instructions.
To begin, log in to your WordPress dashboard. Move your mouse pointer over the Plugins option and press Add New, as shown below (Plugins>Add New).
Ding the keyword search field (Upper arrow) on the plugins installation screen and type “password protect.” When the Password Protect plugin shows up, press the Install Now button, as shown in the screenshot below.
After installing the Password Protected plugin, please enable it by pressing the Activate button.
Once the plugin is installed and enabled, access its configuration screen by moving your mouse pointer over the Settings option on the dashboard left menu. Then, press Password Protected, as shown by the arrows in the image below (Settings>Password Protected).
On the Password Protected Settings screen, mark the Enabled box to enable password protection. Type your password in the New Password field and press the Save Changes button. You also can add exceptions to allow administrators and logged-in users to access your site without a password.
As you can see, you also can allow access by IP address; feel free to add any IP address you want to allow.
You will be able to see your home page, but you will be required to type the password when trying to access any subpage or resource, as shown in the screenshot below.
That’s all; now, your site is protected. Keep reading to learn about additional options to restrict access to pages and resources.
Alternative plugins to password protect your WordPress site:
As said previously, the market offers many plugin alternatives to password protect your WordPress site in different ways and with different features. Some of the available plugins are the following:
- WordPress Password Protect Page – PPWP Plugin: This plugin to protect your site with passwords allows you to restrict categories, Woocommerce products, posts, or all your site.
- Passster – Password Protection: This plugin allows you to protect pages, posts, or all your site and specific areas within your content.
- Password Protect Pages: This plugin is helpful to restrict WordPress pages to logged-in users.
Protecting your WordPress by adding a password is an easy task, as seen in this article. All WordPress-level users can do it by following the instructions previously explained. Protecting a page with a password is an excellent method to share sensible content from your site to specific users. WordPress offers a lot of alternatives to achieve the same task. All plugins available for this task are similar to the Password Protect used previously. Still, some include additional features you may find interesting (described in the last section of this article).
I hope this article explaining how to password protect a WP site was helpful. Keep following us for more tips and tutorials.