How to password-protect a WordPress page

What is WordPress?


WordPress is a tool where you can create a website online in PHP. And is also an open source.

WordPress is a simplest and strongest blogging and site content management system which is used commonly today.

WordPress will be built with PHP and mysql database.




From password-protect, you can protect a Wordpress page so that public can't see it. This will prevent most people to view and find the content.

However, This does not prevent the page from being indexed by search engines, and it does not encrypt the page's content.

Therefore, this method should not be used for page content that you must keep private.


Password Protected pages and posts in WordPress will allow you to hide content from visitors unless they have the password to publish the content. By keeping passwords for pages will be useful for member only pages or for pages which are only meant for a certain audience. And the best part of using it is that it makes your WordPress website quite easy to set up a password by protecting your pages and posts.


Why You May Want to Password Protect Your WordPress Page?


Today most of the people who are using WordPress website may think that using password protection for WordPress page is illogical. But it not true, because there will be times where you need to restrict access to the content on your WordPress website. And today you can protect it through a variety of means and you can make certain pages as private. The simplest form is by setting your website to "noindex" and also allowing access to the landing pages to only selected individuals.


To password-protect a WordPress page, follow these steps:


1. Log in to WordPress hosting as the admin panel.

2. Under Dashboard, From left-hand pane, click on post,

3. From post click Add New.

4. Write your post.

5. In Publish, next to Visibility, click Edit. The post visibility options appear.

6. Click Password protected. The Private option keeps the page hidden from the public completely.

7. In the Password text box, type a password and make a note of that.

8. Click OK, and then click Publish. Now when visitors go to the page's URL, they must type the correct password to view its content.


Below are a few reasons why you might want to password protect your WordPress page:

Paid Privilege - If your website is having any sort of premium member's only area then in that case you can restrict its access to general users by setting a password. Today a lot of websites that sell premium online courses and classes will have these types of exclusive member’s areas on their websites where only premium members have access to.

Private Sales - This option will come in handy for painters or for auctioneers who would want to restrict the access to their artwork online. This is very helpful for anyone who really wants to showcase their work to potential buyers only.

Sensitive Content - So if you are a blogger who occasionally writes any articles or if you add any pictures which are not suitable for a younger audience then in that case you can consider using password protection for that particular content. Not only that even if you have any content on your website that you'd like to share with only selected people then you can hide it from the public by setting a password.