A Friendly Guide About Password Protected Content in WordPress

Hello guys,

We’ve been sharing pretty complicated things about WordPress recently. And we’ve been talking about some academic WordPress books that are good for your professional development path, discussing the shortcomings of WordPress page builders and sharing some WordPress SEO tips, etc.

Now, let’s refresh a little bit and go back to basics.

Today, let me walk you through a basic yet very helpful feature: password protection in WordPress. We’ll examine this feature thoroughly by answering some questions and I hope that you’ll have a fairly good grasp of password-protected websites, no matter what skill level you are.

What is password protected in WordPress?

Password protection is a method you can utilize to hide a website’s content from public access. You can set a password for a specific post or page; for example, and when people click to view that post or page, it will ask them to enter the password.

This convenient feature is built into WordPress. It’s just that simple. And it’s one of many helpful features in WordPress security.

Why do you need password protection?

You might not aware of password-protected posts and pages, but these might come in handy for you sometimes.

The purpose of password protecting something is to hide it or to share the protected content just within a group of members. For instance, in the situation where you are working on a demo page which you want just some people to see without having to register a user account, password protection is a great solution.

There are some other reasons why you might consider password protecting a page, or several pages, on your site. Apassword-protected page is also convenient for your team in sharing product specifications or blueprints. Maybe some other valuable materials like confidential company information, training videos, or webinars, etc. should be protected too.

Depend on your skills, you can flexibly utilize password protection in your web development. Besides posts and pages, developers can create an offer which customers pay to join and then only those who have paid their money can get access to the protected information. In whatever situation you need to use password protection as part of your WordPress security strategy, this method can be done in just a few simple steps.

Note that all the blocked pages or contents are inaccessible by search engines, so don’t misuse this tool or create too many blocked pages and then forget to “unlock” them.

How To Password Protect a Page?

First, let’s answer the question: what kinds of content need password-protection?

It can be a post or a page. How?

From your WordPress dashboard, go to the Page or Post you can either select one of your current pages/posts or click to add a new page. Here in the editing content interface, on the right sidebar under Publish, clickEdit beside the Visibility field and select Password protected. This is what you’ll see:

Enter your password and save. Then, when going to the front-end to view that protected content, it will request a password to access it. One small note: if you are looking to password protect several pages on your website, you will have toset a password for each page separately. There’s no built-in option for password protecting multiple pages at once.

Yes, it’s very simple to use WordPress password protection for specified pages or posts.

Password protecting your whole site? Why not?

If you’re working on a brand new (and way cooler) WordPress version for your website, you will need to password protect it so no one can see it under construction. By doing so you can take time and gradually finish your project. There’s a plugin calledPassword Protectedwhich can help you put your website undercover with very simple settings.

I should say that it’s theeasiest way of locking and protecting your WordPresswebsite. Of course, there’s no need for user registration.

Any other application?

Beside pages and posts, you can password protect a downloadable file or double your site’s security by password protecting your WordPress admin (login) page. The former is easy to do with a WordPress plugin called “WordPress Download Manager“. If you have files that you want to share privately with a group of members, download and install this handy tool. Your needs should be fulfilled in just a few steps.

For the latter, password protecting admin (wp-login) page, it’s a should-have because adding an extra authentication layer helps strengthen your website’s security. The steps are simple for any developer:

Step 1: Login to your website’s cPanel. Find the Security Tab and then click on the “Password Protect Directories” icon.

Step 2: When a lightbox popups and asks you for a directory location, just click on web root. And then navigate to the folder where your WordPress is hosted. Now click on the /wp-admin/ folder.

Step 3: Check the box “Password protect this directory“. Then create a user for the directory.You’re done.

What are you using password protection for?

Do you use any of the password protection methods listed above? This simple feature of WordPress seems tiny to expert WordPress users, but it can be your big saver in many cases.

I’d love to see more real cases with password protection from WordPress gurus, so be generous and share your experiences here. Or share with care give your friends this post.

by Vivian Vu

I'm a proud minion in the WooRockets Team. Enjoy life, music, writing blogs and LOVE to read comments for my blogs - So feel free to connect with me by leaving a comment right below or tweet me @vivianjedi

One thought on “A Friendly Guide About Password Protected Content in WordPress”

  1. Araleena says:

    This is a great feature and i’m currently using it to password protect my practitioner only products – BUT i would love to know how to create a message in the password input page (appears when users choses practitioner only product) that informs users that they can contact me to get a password to access the products (this is so that i can meet some regulatory requirements)…. I am very basic on the WP front but i’m willing to give stuff a go… many thanks 🙂

Leave a Reply to Araleena Cancel reply

Ready to Sell Online?

Build Your Online Store with WooCommerce & Nitro Theme

Read more
Contact

Touch With Us