In today’s article, I’ll show you how to create a WordPress password-protected page without using any plugin or custom code. This is the easiest method to password-protect any page on your WordPress website.
Here’s a quick sneak peek of the final results.
On This Page
- 1 What is Meant by WordPress Password Protected Page?
- 2 Why Would You Create a Password Protected Page in WordPress?
- 3 How to Create a WordPress Password Protected Page?
- 4 How to Password Protect Shop and Category Pages?
What is Meant by WordPress Password Protected Page?
Password-protecting a page on your WordPress site means that the page will only be accessible by the users with the password, and the users without the password cannot access the page and its content.
When you publish a page on your WordPress website, everyone visiting your site can view and access its content.
However, a password-protected page can only be accessed with a password. The users will still be able to navigate to the page, but they won’t be able to see the page’s content without the password.
Why Would You Create a Password Protected Page in WordPress?
Creating a password-protected page in WordPress will help create a members-only page. You might want to share a page with only a few of your customers, so instead of creating a new user role for them, you can simply password-protect the page.
You can share the password with the ones to whom you want to give access. This way, other users with the same role won’t be able to access the page.
This is an easy way to give access to a page to only a few users within a single user role. You can password-protect any of the pages on your WordPress site.
Now let’s dive into the tutorial.
How to Create a WordPress Password Protected Page?
To create a WordPress password protected page, I’ll be using the default settings of WordPress, which means you don’t need any third-party plugin to follow along with the tutorial.
You can simply follow the following steps to create a password-protected page immediately.
Navigate to the Pages » All Pages from your WordPress admin dashboard. It will redirect you to the page where you can see all the pages you published on your site or the pages in drafts.
2. Edit the Page
Now we need to add password protection to a page so that the page content can only be accessible by the users who have the correct password.
Hover your mouse over the page for which you want to set a password, and once you hover over it, you’ll see a few options below the page’s name, click the ‘Edit’ button to edit the page.
You can edit any of the pages on your site. The procedure for password protection is the same. I am editing the ‘’Front Dashboard” page to password-protect it.
Note: You can also create a new page and follow the rest of the steps to password-protect it, but for this tutorial, I am editing one of the pages on my site to keep it short and precise.
Once you click the ‘Edit’ button, you’ll be redirected to the edit page. You can edit the page, content, design, and visibility from there.
3. Password Protect the Page
Once on the product edit page, click the blue ‘Public’ text from the ‘Status & Visibility’ tab on the right sidebar.
You’ll get three options here.
- Public: This option will allow everyone to visit the page and its content.
- Private: Only visible to site admins and editors.
- Password Protected: This option will allow you to create a password-protected page. Only the users who have the password can access the page.
Also, ensure you are in the page’s settings, not the block settings.
By default, the page’s visibility is set to ‘Public,’ but as we want to create a WordPress password-protected page, we need to set its visibility to ‘Password Protected.’
To select it, simply click the ‘Password Protected’ option.
4. Set the Password
Once you click the option, you’ll get a new field below the ‘Password Protected’ option. In this field, you can set the password you want.
For this tutorial, I am using a dummy password but make sure you choose a strong password for better security.
5. Update the Page
Once you set a strong password, we need to update the page to apply the settings we just did.
To update the page, click the blue ‘Update’ button at the top right corner of your screen.
6. Final Results
Once the page is updated, now is the time to see the settings in action.
To check it, visit the page as a regular user, and you’ll be asked for a password to see the page’s content.
The users who have the password can access the content by entering the correct password.
Tip: If you want to change the password, you need to edit the page again, and from the visibility section, you can change the password.
How to Password Protect Shop and Category Pages?
WooCommerce gives you all the features you need to start a successful online store. But there are some cases when the default settings of WordPress and WooCommerce are just not enough.
In the case where you want to password-protect the category or product pages on your store, there are no default settings to achieve this goal.
But don’t worry. Woosuite got you covered.
With the help of the powerful WordPress Restriction Rules plugin, you can easily password-protect the shop, category, and product pages. This plugin also allows you to hide a product, post, or page from specific users.
Here are a few guides to help you password-protect the shop and category pages.
Now you know how to create a WordPress password-protected page.
You can also create a private or members-only store where users must enter a password to view the shop page and purchase the products. You can even use the Dynamic Pricing Rules Plugin to offer discounts to the users who can access the page.
I hope this article helped you learn to password-protect the WordPress page. If you have any queries, you can ask them in the comments. I’d love to answer all your questions.
Ready to get started? Download the WooCommerce Restriction Rules plugin today!