Skip to Main Content

How to create a private or password-protected WordPress blog

Divi: the easiest WordPress theme to use

Divi: The best WordPress theme of all time!

With over 901.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]

How to create a private website on WordPress?

How to make the content of your blog Private?

Here are 2 questions that many bloggers are asking every day.

A blog mainly intended to be accessible to all. However, there are situations in which you want to make your blog totally private. We have also received several requests in this direction. How to create a private password protected blog

Some users were asking if it was possible to protect their blog content (portfolio family) SEO and unknown visitors.

If you want also make your blog completely private, then you are in the right place. 

Complete your knowledge by consulting also these 8 WordPress plugins to protect your website with a password

In this tutorial we will show you how to do it quite easily. We will also show you how to create a private article (protected by a password) for those who want to create a private section in a public blog.

Who and when do you need a private blog

  • A private blog is useful for restricted sharing of personal content, it could be your family events, wedding photos, baby photos, with friends and family, etc.
  • A private blog can be used as your own public or intimate newspaper
  • People working on projects can collaborate on a private blog
  • A website that is not yet fully developed may be private
  • A school website can be private and only accessible to registered students

How to make a blog partially private

What do we mean by a partially private blog? This is a blog in which some parts of its content are hidden and only available under certain conditions. To achieve this, we will use the plugin " Private Content", Which allows you to limit the portion of the content that should be hidden.

Private content wordpress plugins

This plugin provides a shortcode that accepts some parameters that are quite detailed on the description of the plugin. Here are the most useful parameters and their description:

  • role: allows you to restrict content to users with a specific role. Example [private role = "admin"] Protected content [/ private]
  • container: allows to wrap the content in a precise tag. Example [private container = "div"] Protected content [/ private]
  • container: allows you to restrict content to a specific user. This parameter accepts user names. Example [private recipient = "john"] Protected content [/ private]

Public chat the plugin pageyou will find a complete list of parameters and their usefulness.

How to make your blog completely private

The first thing you need to do is install and activate the Plugin  WP Private Content Plus. After activation, you must access the interface « Private Content Settings> Private content settings » To configure the Plugin.

Easily create your website with Elementor

Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]

Restrict content setting

You should know that there is a premium version of the plugin which offers a lot more features. The basic functionality of the plugin allows you to set up a basic restriction which may be sufficient for most blogs.

You must first restrict the content by clicking on " Enable Private Content Module" page (in French).

You can also redirect all users who do not match certain criteria to a specific URL of your choice, which you will add to the " Post / page Restriction Redirect URL" page (in French).

All you have to do next is protect the articles by modifying them.

Wordpress article protection

How to create private articles on WordPress

WordPress has a built-in feature that allows you to publish articles and pages protected by a password. And Vhere's what you need to do to create an article or a page private.

You must start by creating a new article about WordPress or modify an existing one. On the content editor screen, go to visibilite (on the right of the screen), which is an option on the section " publish ». Click on the link « Edit«  following the visibility (Par default the value is "Public")

If you are using the editor Gutenbergyou will find this option also on the right sidebar of your dashboard.

Wordpress password protected article

Clicking on it will immediately give you the option to set the password for your article. You will still have the option to switch to normal mode by clicking on " Protected by a password" page (in French).

Edit a password protected article

To access the article in question, users will need to enter the exact password to view the article. 

See also How to Write (write) quality content on days when you feel heavy and distracted

Remark : Keep in mind that users with the editor or administrator role will be able to view the password protected by accessing the dashboard. However, if you are the only admin on your website, then you don't need to worry about this.

Now, discover premium WordPress plugins that will help you protect your online store.

1. WooCommerce Password Protection Products, Categories or Shop

This WordPress plugin allows you to password protect your entire website, a section of your online store, specific categories, products or pages. You will be able to create a password, hide the desired content from the public, and share it with specific people.

Woocommerce password protected products categories or shop plugin

You can also choose to display password protected pages in search engine results by allowing them to crawl those pages.

Its features include: password protection for a section or your entire website, the ability to create multiple passwords by importing them to create different access rules to your website, customization of the background from the password protection page, and much more.

Download Demo | Web hosting

2. Product Password Protector 

This is a fairly simple WooCommerce plugin that can be used to enable password protection for your products (general or individual for each product). So, if the administrator allows password protection for some products, the user will be prompted to enter the product's password to purchase it.Product password protector wordpress plugin for security

Its features are: ease of use via the dashboard, enabling or disabling password protection for your products, compatibility with most browsers, no coding required.

Download | Demo | Web hosting

Other recommended resources:

BlogPasCher recommends other WordPress plugins if you also want to create a private website:

Conclusion

Here is ! We hope this article will help you protect your articles and pages with a password on your website WordPress. It's a great way to share your content with a small number of people.

However, this is not the only way to make it happen and if you have any you want to suggest, feel free to do so in the comments section. Mostly, do not forget to share this article with your friends about Social networks.

...

This article features 32 comments

  1. Hello,
    We have been using wp in our company to manage our intranet since its launch and we have recently installed the SiteOrigin plug-in for a redesign of the design (creation of new pages etc…).
    We have a password-protected space for certain documents, but since the publication of our new pages with this type of protection, we have encountered a big display problem: the "password" field is superimposed on the bar of our menu. and does not allow clicking on it to enter the password. No access is therefore possible.
    I am trying to modify this "automatic" page (the one where the user must just type in the password before accessing the content page): How and where can I do so?
    Thank you in advance for your answer.

  2. I am amazed to find this blog. I wanted to thank you for posting this masterpiece. I really enjoyed every part of it. I added you to see more new stuff on this site.

  3. Hello,

    I set up a WordPress blog asking for it to be private, and I want my family and friends to have access to it. However, I just saw on the WordPress site that I can only send an invitation to 10 people, is that right? What should I do because I have more than 10 people I wanted to send it to?
    Thank you for your reply as soon as possible because it is quite urgent,
    cordially

  4. Hello,

    Thanks for your tutorial. On my wp site, I created an access page with password according to your advice and it works correctly. However, I have allowed the comments and they show without the page word on the page? How do I ensure that the comments only appear when I have entered the password, as for the page? Thank you in advance for your suggestions.

    Michelle

    1. Hello,
      i haven't found a plugin that does the job, but you can (if you know what you're doing), circle the comments section with this php condition


      <?php
      if ( !post_password_required() ) {
      echo 'protected stuff';
      }
      ?>

  5. What I'm looking for on my side is to have 'Landing Pages' that are private without having to use a password, is that possible?

    My situation: I work on a multi-company project. The information is confidential, but we want to make certain information accessible to all employees of the various companies via hyperlinks in newsletters sent by email. I don't want this information to be found by searching the internet, the only way to access it is with the link provided to the employee. Is this completely unrealistic or just don't know how to do it?

    Thank you

    1. Hello,

      then in that case you will have to give the SEO plugin that you do not want the page in question is referenced by search engines.

  6. Hello,
    First of all thank you for your article which helped me a lot.
    I still have a question, the visibility thanks to a password to consult an article corresponds to my expectations.
    However, there is no error message when the user gets the wrong password, not great ...
    Is it possible to add one? Do I need to add a raw message in the code?

    thank you in advance

  7. Hello,

    I would like to put an "event" article protected with a password. So, following the various tutorials, I validated the option "with password" in visibility, clicked on "ok" and "update the article". But when I arrive on the site of the first page with all the articles, I am told that the access is protected but I can still click on the “see +” button and thus enter the page of the article and see all of its content. I have tried the method of changing browsers etc ... but it doesn't work. How can I do ?

    Here is the access page: http://pole-moveo.org/ (Article at the bottom of the page)
    Here is the page of the "event" article: http://pole-moveo.org/evenements/workshop-go-international/

    Thank you in advance,
    Diane

    1. Hi,

      In fact, and unless I'm wrong, I believe you have access to these protected pages of your website or blog because you are already logged in as admin on the same browser. Please try to verify the protection of your pages on a browser you are not logged in to.

      What plugin do you use to make your site private?

      Thierry

  8. Hello,

    I create a password-protected section, everything works fine, it is protected no worries on that side. However, the password is stored and which is collected at the first access to the article. Are there a solution for it to be asked every time we return it?
    This is a private photo gallery and I do not wish that someone with access from a public or shared computer could leave the possibility of access to another person.

    Thank you in advance for your help and your answer!

    1. Hello,

      Sorry for the late response. You need a specialized plugin like Wishlist member and many others. These professional solutions make it possible to effectively protect the content of your website.

  9. Hello,

    I find your blog very interesting, and practical! and this article can be of great help to me.
    I may not be quite in the right category, but I would like an answer to a question that is very important to me.
    I'm trying to create an online store with WooCommerce.
    The creation of the store behind a little.
    Impatient, I want to create a blog to start to build my audience.
    On WooCommerce, we blocked the search engines.
    Is it possible to create a blog apart from WooCommerce?
    And how to ?
    Thank you in advance for your help.

    1. Hello,
      If I understood your question correctly then I will say yes you can blog separately. but in this case, WooCommerce should not be installed on the same site. While this is the case, then the setting will apply to the whole site.

      But you can also disable page referencing individually. It all depends on the theme and the plugins used.

      cordialement,
      Thierry

    2. Hello,
      I will add that for you can request that a specific page not be referenced, by adding the following code in your robots.txt file

      User-agent: *
      Disallow: /adresse-de-votre-page.html

      1. Thanks for your advices !
        Yet practical and concrete.
        I keep the code but I realize that it is more complicated than it seems.
        Thank you again and good day to you!

    1. Hello,

      Sorry for the late reply, we are super busy this week. Regarding your concern, have you tried to connect on another browser? Because if you are on the same as admin, it is normal that you can access it without problems.

  10. The possibility of a password does not work on the articles page.
    You can simply put passwords on items.

    (In the free version).

      1. Hello,

        the worry when you use the wrong terms, there is no article page but categories, he wants to privatize a category,

        there is a concern in the images, at the height of the naming of the images, we do not put an accent!
        how make-an-article-privé.png
        png good for a picture that transparent, otherwise use jpg

Leave a comment

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

This site uses Akismet to reduce unwanted. Learn more about how your comments data is used.

Back To Top
7 shares
Share4
tweet
Save3