How do you protect one or more pages in WordPress with a password? For starters, there are many reasons why you would want to enable password protection on pages or posts in WordPress. The most common reason for doing this is you only want site editors to see a certain page (such as membership site), or only friends and family to see a personal blog post.
The process of creating a protected page in WordPress is by creating a password to access it. This can be useful for member-only pages or pages meant for a certain audience. This may sound like a challenging task but trust us, it is rather simple.
It’s easy to create WordPress password-protected posts or page. In this tutorial, we’ll show you how to set up a WordPress password protect page yourself, along with methods to protect your entire WordPress site.
Before that, here’s a quick summary of what you’ll learn today:
But before that, let's answer one major question.
There are many reasons why you would want to enable password protected page WordPress. For example, you may be using a membership plugin to run a membership site and you would only want the content to be viewed by members (members-only content).
There could also be the possibility where you want to enable password protection because it is a staging site—and the access should only be given to your clients for viewing.
A password-protected WordPress website means that you would need to enter the password (correct password) to gain access to the post or page.
This allows the website administrator to have better control on the content in the posts or WordPress pages and at the same time, protect WordPress as a whole.
Here are the exact steps you need to take to create password-protected pages WordPress. To enable password protection in your WordPress site, follow these simple steps to protect WordPress posts:
Here's how it looks like:
What happens now is that every time you visit the selected post, you are prompted to enter the correct password before being able to view it.
WordPress allows you to easily differentiate posts and pages that are password-protected to the ones that are not. In the content list, you will be able to see special tags "Password protected".
You can even use this method to password protect a PDF document. That way you can protect your PDF from people who shouldn’t have access to it. This is extremely useful especially when you want to ensure the identity of the person downloading the file (since they need to enter the password).
There will also be instances where you will see Private tag. The Private visibility option in WordPress restricts the content to the person who created it. Or, anyone logged in with the Editor or Administrator role. So this isn’t really a valid option when it comes to restricting content.
There is, however, a way to protect your entire site from unwanted visitors, which we’ll cover next.
At the moment, WordPress doesn’t have a way to lock down an entire site. You can only lock a post or WordPress page. Instead, you’ll need to install a WordPress plugin to ensure that your WordPress site is password protected.
At the same time, you can use a coming soon WordPress page to generate some word of mouth such as:
The process of protecting multiple pages with a password using SeedProd is fairly simple.
Here's how to get the license key and plugin download. Click View License Key, Details, and Downloads.
From here, click the green button labelled Download Coming Soon Pro.
Now head to Plugins » Add New in your WordPress admin panel, and click Upload Plugin.
Click Choose File to find the .zip file you downloaded on your computer, then click Install Now.
After you’ve installed the plugin, click Activate.
The SeedProd plugin doesn’t only give you the option to password protect your WordPress website site as a whole but also gives you the options to lock single pages and posts too.
In order for you to protect an entire site with a password, head over to Settings » Coming Soon Pro from your WordPress admin panel and select Enable Coming Soon Mode.
Next, click Save All Changes when you’re done.
With that being said, your entire WordPress site is now protected from the outside world. Only people who are logged in can see your normal website. The public and visitors will only see the coming soon page.
But what if you only want to hide certain pages in WordPress? The Coming Soon Pro’s password-protected features let you do that too.
Scroll down the same page to the section labelled Advanced Settings.
Next, click the Include URLs radio button. This opens up a content box where you can type in the URLs of the pages you’d like to hide from visitors.
When you’re done, click Save All Changes.
If you have website visitors that need access to those pages (and posts), but who don’t have a login, there’s a simple solution.
The Access Controls panel has options that let you bypass the restricted page or post.
Here you can add a password to your WordPress page. This creates a secret URL you can give to visitors, which ignores the coming soon page. If by any chance you forget your password, you can quickly take a glance at this page to refresh your memory.
Now, you might be wondering—you are using a contact form plugin and spams are getting through even with the toughest page protection settings.
How do you protect WordPress (and your sanity)?
Good news! We have a cool workaround to ensure that password protect WordPress on contact forms too!
Carry on reading to learn more!
We had been preaching this for a long time—WordPress is a very versatile CMS that allows you to install plugins to provide certain functionality without coding skills. One of them is to install a contact form plugin to generate leads and sales.
Here's the thing.
Installing a contact form plugin and customizing the form is the easy part. Keeping spammers at bay is a whole new story. If you are using WPForms like some of our WordPress clients do, you can do this with the handy Content Locker addon.
Here are some of the advantages you can do with the WPForms Content Locker addon:
The most popular form locker for WordPress
The Content Locker addon is only available in the pro version of WPForms.
Now go to your forms list and click Edit on the form you’d like to password-protect. Alternatively, you can build new password forms.
Next click Settings » Form Locker from the left-hand admin panel.
From here you can set conditions for the following options:
The advantage of using this feature is that it doesn’t just apply to the forms you create with WPForms, you can also use Content Locker to restrict access to your surveys, pools, post and pages. Yes, this addon gives you more control with password protected features.
You’ve learned how to create a WordPress password protected pages WordPress and password protected posts too. On top of that, this WordPress tutorial also shows you how to hide an entire website, along with locking your forms with a password.