4 different ways to password protect WordPress

4 different ways to password protect WordPress

Need password protected WordPress? Whether you need to password-protect your entire website or just a few separate posts (or something in between!), I have the solution for you in this article.

After reading it, you will know how to protect your password:

  • Your entire WordPress site
  • Specific categories of your website
  • Personal post or page
  • Personal WooCommerce Product
  • Specific content in other public WordPress posts

So whether you want the entire suite or kaboodle or just need a post, you can learn it here. Let’s jump in …

How to Password Protect Your Whole WordPress Website

If you want to password protect your entire WordPress site, you need a third-party plugin to get the job done. After playing many different games, I have identified Ben Huson’s password protection:

To use it, install and activate the plugin just like any other WordPress plugin. Then, go to Settings → Password Protection.

All you need to do is configure the following pages to password protect WordPress:

That’s what it all means:

  • Password protected status-When enabled, your site is password protected.
  • Protected permissions-If you check one of the boxes, visitors with these permissions will not need to enter a password. They will only see your site as normal.
  • New password-Enter the password you want to use for your site.
  • Allow IP Addresses-If you enter an IP address here, no one accessing your site from that IP address will need to enter a password.

After clicking “Save Changes”, anyone who does not meet the access rules you define will see this screen before visiting your website:

If you want to customize the style of this page, you can do it just like customizing a normal WordPress login page.

Note – If someone links directly to an image or file on the server, they can still access the file. Password protection only affects your actual WordPress site.

How to Password Protect WordPress Categories

Not ready to password protect your entire website? If you want something less intense, you can use different plugins to password protect specific categories of posts on your site. For this method, you can use the access category password:

After installing and activating the plugin, go to Settings → Access Category Password.

As with password protection, there is only one page setting:

That’s what it all means:

  • Password-self-explanatory! The password that users will use to access restricted categories.
  • Affected Categories – Check the box for each category you want the password to apply to.
  • Granted to user – The user role you check the box does not require a password.
  • Only one post – If you check this box, post content will still appear on your archive page or homepage. Only individual post pages with restricted posts are password protected. The default value should be unchecked.

Below these options, you can also configure various messages that appear in the input password form. Having said that, if a user tries to access a post from a restricted category, the user will see the following:

How to password protect WordPress posts or WooCommerce products

If you want to password protect a single WordPress post, page or WooCommerce product, you don’t need any third party plugins. WordPress actually has a built-in function to help you achieve this.

Just head to the WordPress editor to get the posts, pages or WooCommerce products you want to restrict. Then, under Publish, click Edit for the Visibility option:

Select Password protected and enter the required password. Then click OK:

When you post or update your post, it will be password protected as follows:

Because this is a core WordPress feature, the process is the same for pages, WooCommerce products, or almost any other custom post type.

A neat trick is to use the same password for multiple posts. If you do this, users only need to enter the password once to access all posts with that specific password.

How to password protect some WordPress posts

If you just want to add password protection to specific content in other public WordPress posts or pages, you need to return to a third-party plugin for help. This time, you can use a password called Passster-password protection:

As usual, install and activate the plugin to get started. Then go to Settings → Passster and create a short code with your password or an automatically generated password.

Next, head to the WordPress editor and find the post where you want to add password protected content. Then, just paste the short code into the editor and write the protected content:

Visitors will now be able to see all your normal content. But anything you add in the shortcode will be password protected as follows:

Packed

This completes our password protection guide to protect WordPress in various ways. If you only need to restrict a single WordPress post, you can use WordPress’s built-in password feature. Otherwise, to password protect the rest of WordPress, you need to use one of the third-party plugins I quoted above.

If you have any other questions about how to password protect WordPress, please leave it in the comments and we will try to help you!

One Comment

SEO Reseller Program
January 27, 2020 12:43 pm

Awesome post! Keep up the great work! 🙂

Leave a Reply