Password protection can be applied to WordPress pages or posts.There is a built in option in WordPress for this.In this article I will go through steps to password protect a page or post or even full site by a single password.
Using WordPress built in method
1. Create a page or post in WordPress admin panel.on right side of page or post editor there is a box named “Publish”.You may already familiar with that
By default it look like this..
2. Click on Edit in “Visibility” option.You can see there will be 3 options Public(it is default),Password protected and Private.Select Password protected and enter password you want and publish the post or page.
Your post or page is password protected now.It will take a lot of time if you have many pages or even you want to password protect your whole site. In this case a plugin may help.
Protect WordPress site with a single password using a plugin
Go to Plugins section of your WordPress admin panel and search a plugin named “Password Protected”.On search you will get this plugin developed by Ben Huson.Install this plugin and activate it.
To enable this plugin go to Settings => Password Protected and enable it and enter password of your choice and save it as shown below..
You are done!