Written by Editorial Team on May 22, 2020

How To Easily Create A Password Protect Page In WordPress

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:

  • How do I hide my WordPress site from public view?
  • How to password protect a page in WordPress?
  • How to password protect a WordPress site?
  • How to password protect WordPress contact form plugin?

But before that, let's answer one major question.

Why do I need to password protect a WordPress website?

Wordpress Password Protect Page
~Why should I enable password protection in WordPress?

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.

Content restriction in WordPress is common especially when it comes to managing a members-only content effectively (not to mention, lead generation too).

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.

How to create a WordPress password protect page or post?

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:

  1. Log in to WordPress as an administrator (administrator access is required to enable password protection for WordPress).
  2. From the dashboard, head to Posts » All Posts.
  3. Click Edit on the post content you want to hide.
  4. In the top left corner under the Publish option Edit the visibility.
  5. From there select the Password Protected option to protect your page and enter a password.
  6. Then click Publish or Update.

Here's how it looks like:

Password Protecting WordPress Posts
~How to protect WordPress posts with password?

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".

Protected WordPress Pages
~This is how a password protected WordPress page looks like

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.

How to Password Protect an Entire WordPress Site?

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.

One of the best WordPress plugins for protecting or hiding the contents of an entire WordPress site is the SeedProd Coming Soon Pro Plugin.

SeedProd Coming Soon Pro plugin allows you to easily hide sections or your whole site from visitors without any coding skills.

At the same time, you can use a coming soon WordPress page to generate some word of mouth such as:

  • Sign up for your newsletter
  • Follow your social media profiles
  • Share your page on their favourite social media networks
  • Ask questions through a contact form

How to create a WordPress password protect page using SeedProd?

The process of protecting multiple pages with a password using SeedProd is fairly simple.

Firstly, you would need a copy of SeedProd Coming Soon Pro plugin (which you can get it here). You are required to activate the plugin license before you can create a coming soon WordPress page.

Here's how to get the license key and plugin download. Click View License Key, Details, and Downloads.

Seedprod Account Dashboard
~Seedprod dashboard

From here, click the green button labelled Download Coming Soon Pro.

Download Coming Soon Pro
~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.

How to upload Seedprod Coming Soon Pro
~How to upload Seedprod Coming Soon Pro?

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.

How To Enable Coming Soon Mode
~How to enable coming soon and maintenance mode?

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.

Maintenance Mode Coming Soon Page
~Maintenance mode and 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.

Coming Soon Page Include Urls
~Include and exclude URLs

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.

Seedprod Access Controls Panel
~Seedprod access controls panel

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!

How to protect forms with a password in WordPress?

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:

  • Lock forms – Users will have to enter a password to submit the form. This protects you from unwanted form submissions.
  • Restrict forms to members – You can restrict forms to only logged in user roles which is ideal for membership sites. Businesses can also use this to restrict support to paying customers.
  • Close form submissions on a certain date/time – This is useful for application forms with a set deadline.
  • Limit the number of total submissions – Contests and giveaways can benefit from this. When the max number of entries is reached, the form will automatically close.
  • Limit entries to one per person – A great choice for free sample forms and giveaways, this option helps you avoid duplicate submissions.

The most popular form locker for WordPress

The Content Locker addon is only available in the pro version of WPForms.

How to install Content Locker addon?

  1. Install and activate WPForms Pro.
  2. Next, head to WPForms » Addons.
  3. Here you’ll see a list of addons available to you. Choose the Form Locker Addon and click Install Addon.
WPForms Content Locker Addon
~WPForms content locker addon

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.

How To Edit WPForms
~How to edit WPForms in WordPress?

Next click Settings » Form Locker from the left-hand admin panel.

WPForms Content Locker Settings
~WPForms content locker settings

From here you can set conditions for the following options:

  • Password – Enter a password for people to use to access the form. You can also add a custom message to the password page.
  • Scheduling – Set a start and end date/time, along with a message for when form entries are closed.
  • Entry Limit – Enter a number for max form entries. Again, you can write a message for when the form is closed.
  • User – Restrict your form to logged-in users only along with a custom message.
How Does Form Locker Works In WPForm
~How does Form Locker works in WPForm?

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.

Summary: How to create a password protected WordPress site?

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.

If you liked this article, don’t forget to like us on Facebook and follow our Twitter account for more helpful WordPress guides.

Article written by Editorial Team

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts