How to create a website Private 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.
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.
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]
- Containers: 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.
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"
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"
All you have to do next is protect the articles by modifying them.
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.
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"
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
Please note: : 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.
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.
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 others WordPress plugins if you also want create a website private:
- UserPro - User Profiles with Social Login
- WooCommerce Membership
- WP Membership
- SUMO Memberships - WooCommerce Membership System
- Ultimate Membership Pro WordPress Plugin
- ARMember - Complete WordPress Membership System
- PrivateContent - Multilevel Content Plugin
- Subscriptio - WooCommerce Subscriptions
- Yiths Membership
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 Media.
...
Hello,
Is there a plugin allowing the logged in user to change their password?
Yes all membership plugins allow to do this. Paid Membership for example.
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.
Hello,
Do you contact the developer of the plugin?
Yes we contacted the developer and we are to date, without response from him.
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.
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
Hi,
Can you specify exactly what you want to do please? Because I have a little trouble following you.
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
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';
}
?>
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
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.
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
Hello Eugénie,
Personally, I will recommend that you use a plugin to do this. Because the solutions integrated in WordPress are often limited. Paid membership pro is a good free plugin to create is password protected site.
A full list here: https://blogpascher.com/plugins-wordpress/10-plugins-wordpress-pour-creer-un-espace-membres-et-proteger-votre-contenu
Ok I will try.
Thank you for your prompt response
Indeed, there is no practical solution. There are codes all over the internet, but I cannot guarantee their reliability.
Here is a thread on the forum of WordPress.org that would solve the problem.
https://wordpress.org/support/topic/howto-add-an-error-message-to-password-protected-pages
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
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
Hello diane.
In reality Loevenbruck, articles protected by a password remain visible on the home page of the blog. What you need to do is hide the WordPress posts from the blog home. All you need to do, follow this tutorial that we wrote earlier.
https://blogpascher.com/plugins-wordpress/comment-masquer-un-article-sur-la-page-daccueil
Good luck to you.
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!
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.
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.
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.
Sincerely,
Thierry
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
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!
Good day to you too.
Bjr
I have validated the option "with password" but it does not work. Access to the page is without pblm.
http://www.recmontpellier/lillyor
An idea? thank you
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.
The possibility of a password does not work on the articles page.
You can simply put passwords on items.
(In the free version).
Hello,
I do not quite understand your concern.
Thank you
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
Hello Herve
I admit that I have trouble understanding your comment.