How to Set Up Password Protected Site Areas in WordPress

Last Updated on March 23, 2023 by 14 Comments

Editorial Note: We may earn a commission when you visit links on our website.
How to Set Up Password Protected Site Areas in WordPress
Blog / Tips & Tricks / How to Set Up Password Protected Site Areas in WordPress

Need to add password protected areas in WordPress? Sometimes you don’t want to make everything on your site public, and that’s totally ok! A password allows you to restrict access to either your whole site or just specific parts of your site.

In this post, I’ll give you solutions for everything from password protecting a single WordPress post, to whole categories, to your entire WordPress site.

What I won’t focus on is more complex situations like membership sites. While creating a membership site does involve needing to add password protected areas in WordPress, it’s easy to do using a WordPress membership plugin or a popular paywall plugin like Paid Member Subscriptions.

So, let’s get started with some of the non-membership site ways to password protect WordPress content.

How to Password Protect a Single WordPress Post

Let’s start at the beginning with how to restrict a single WordPress post. This is the simplest one because it doesn’t actually require any external tools. Yes, there’s actually a built-in function to password protect individual WordPress posts.

Despite using WordPress for 10+ years, it took me surprisingly long to figure out that this function existed. Maybe it’s the same for you!

To password protect a WordPress post or page, all you need to do is go to Visibility in the WordPress Editor and click the Edit button:

password protected areas in wordpress

Then, just select the Password protected radio button and enter your desired password. Then click OK:

password protected

Once you Publish or Update your post, your post is now password protected. What does that mean?

Well, whenever someone tries to access that post on the front-end, they’ll see this warning. Here’s what it looks like using Divi:

Divi password protected

If your visitor enters the correct password, they’ll see the post like normal. If they don’t have the password, though, there’s no way for them to get in.

Next question – can you use this method with content that you build with the Divi Builder? Yup! It functions exactly the same no matter whether you create your content with the normal WordPress Editor or with the Divi Builder. So feel free to use this method for any single post or page that you want to password protect.

How to Password Protect a Whole Category of WordPress Posts

Ok, let’s say password protecting a single post just isn’t cutting it. It’s not enough password protection! You need to, say, password protect an entire WordPress category…

No problem! You can do it. But now, you’ll need to turn to a third-party plugin. I’ll give you a quick tutorial using a free plugin. But then, because the plugin isn’t super popular, I’ll point you to a premium plugin that I’ve personally tested in case you want a bit more peace of mind.

To password protect WordPress categories for free, you can use a plugin called Access Category Password. Install and activate the plugin, then head to Settings → Access Category Password.

The plugin is pretty intuitive to configure. Begin by choosing your password. Then, choose which categories you want to apply the password to.

You can also choose to grant certain user roles access to the category without a password – so if you, say, check the Administrator box, anyone with an Administrator account won’t need to enter a password.

And another nice feature is that you can choose whether or not to only restrict the single post template. If you check that box, you can still display excerpts on your blog post listing page – people just won’t be able to view the full post without a password:

At the bottom, you can also configure the various messages people see on the password page.

Once you save your settings, anyone trying to access a post in a restricted category should see this:

But if they go to a post without restriction, everything will work like normal.

Note – if you don’t like how the form is styled, the plugin also makes it super easy to add custom styling:

And again, for the million dollar question, does this plugin play nice with the Divi Builder? Let’s find out…Yup! Tested and confirmed that this plugin works with the Divi Builder!

If you want more flexibility – say, to use different passwords for different categories, you can use a premium plugin from Barn2 Media called Password Protected Categories. It costs $55, but it’s much more flexible in its functionality. I got a free copy to play around with and can confirm that it’s pretty neat!

How to Password Protect Your Entire WordPress Site

We hit single posts and categories, so now let’s go the whole way. Here’s how you can restrict access to your entire WordPress site using a password.

For this use, you’ll again need a third-party plugin. I recommend the free Password Protected plugin. It seems to be the most popular solution at the directory. To use it, get started by installing and activating the plugin.

Then, head on over to Settings → Password Protected to configure the plugin.

There’s not much to do. First off, you can choose whether or not to actually enable your password protection.

Then, you can give Protected Permissions. If you check one of those boxes, those people will not need to enter a password (and you can also enable/disable RSS feeds).

Finally, you can also choose your actual password and whitelist certain IP addresses to not need a password:

Once you click Save Changes, your site should officially be restricted. Now, if anyone who isn’t whitelisted by their user role or IP address tries to access your site, they’ll see a big ‘ole password screen:

If you want to change the WordPress logo to your own site’s logo, that’s pretty simple to do. The plugin pulls the same logo used on your regular WordPress login page. So you can either change that logo manually or use a simple plugin like WP Custom Admin Login Page Logo.

Additionally, because this plugin works sitewide, there’s no danger of any compatibility issues with Divi.

Taking Password Protection Even Further

So there’s your quick primer to creating password protected areas in WordPress for:

  • Single posts or pages
  • Entire categories
  • Your whole WordPress site

But obviously password protection can get a lot more complicated if you want it to.

We have a guide on how to restrict only partial post content, and you can always use one of those aforementioned membership plugins to get very granular control over who has access to every single part of your WordPress site.

Now over to you – do you password protect WordPress content? And if so, how do you use password protection on your WordPress site?

Article thumbnail image by RedlineVector /


Want To Build Better WordPress Websites? Start Here! 👇

Take the first step towards a better website.

Get Started
Premade Layouts

Check Out These Related Posts

Splice Video Editor: An Overview and Review

Splice Video Editor: An Overview and Review

Updated on March 10, 2023 in Tips & Tricks

Video is a valuable form of content for social media. Unfortunately, creating quality videos is usually a long process that involves moving mobile footage to a desktop app for editing. However, mobile editing is on the rise. Apps such as Splice Video Editor make it possible to efficiently create...

View Full Post
How to Use Font Awesome On Your WordPress Website

How to Use Font Awesome On Your WordPress Website

Updated on September 16, 2022 in Tips & Tricks

When given the choice between using a vector icon or a static image, it’s a good idea to go with the vector. They’re small and fast to load, and they can scale to any size without a loss of resolution. Font Awesome is a superb library of vector icons that you can use on your websites,...

View Full Post


  1. It says this article was updated this year, but the plugin you recommend to protect categories hasn’t been updated in 4 years and has been abandoned – Access Category Password no longer works

  2. Is there any way to easily re-style the default password protected login page?

  3. I’ve always just used a function to hide a page if they haven’t registered but in some cases I have wanted to use this method, just haven’t searched for the correct plugin.

    Thanks for sharing, though!


  4. Brenda I think you’ve completely missed the point. From the comments so far, you’ve left your readers with the impression that you need a plugin to achieve basic password protected areas. You list the WordPress password feature as only applicable to single posts or pages.

    If you had done your research, you’d know that when a user types the correct password for a page or post, then all posts and pages that carry the same password become available without the need to re-enter the password.

    This means that if you want to protect three pages or perhaps a page with 20 child pages, then all you need do is give them all the same password. This is how you password protect groups of pages or posts in WordPress.

    • Great tip Tony. Makes the article more complete now that you have mentioned that. Everyone reads the comments. Thanks

  5. Great article, informative

  6. This is very timely. Great article as I have clients needing this.

  7. Thanks for this.

    I had a situation with a client who needed a private area for staff where we could put a number of forms/documents they could download when they were out of the office.

    It took me a while to find a good and easy solution but I ended up using a plugin called “Simple Member Area.”
    Did the trick for me, members signed in using the standard WP sign-in screen and were taken to the members only staff area where we had pages with document links etc.
    Just a suggestion in case anyone is need of a similar solution.

    Thanks again,

  8. Hi Brenda, I too have used Divi for a while and never new I could use that little “Visibility” area to password protect a page. Boy, did I feel dumb. I was wondering if there is a way to change the default text that shows up when someone visits the password protected page? I can’t figure out where to go to change that. Any help is so appreciated! Thank you!

  9. Any idea on how to password protect a series of pages without a plugin? I’d like to have a menu link that triggers a password for all sub menu pages. Not just another plugin please.

    • Give your sub-menu pages all the same password. A user will only have to type in the password once to access all pages with that password.

  10. Thanks Brenda, funny thing, yesterday I asked the ET Support for protecting a single page of my site and today you did the job for me, thanks for this article!

  11. Hello. Thank you for the article. Prompt, and how to close the password with a separate text in the article? Need to use the plugin? Thank you!
    P.s I apologize for my English, Google translator

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi