Are you preparing a new website and don’t want visitors to get to it before it’s finish? Do you ne to temporarily lock the entire website with a password? Or are you building a website only for a certain group of people and want to exclude the public from viewing the content? You can password protect your entire WordPress site with a simple plugin.
Password protection via .htaccess
One option is to encrypt the website using a .htaccess file , which is unnecessarily complicat for many people, and the disadvantage is the impossibility of influencing the appearance of the login form. Therefore, we will not cover this option in this guide.
Plugin password protection
The fastest option is to install a simple free plugin – Password Protect.
After installing and activating the
There are several items in the plugin settings that we will look at together.
Password Protect Status – by clicking the box, we activate the protection of the website with a password.
Password Protect Authorization – by clicking the “Enable administrator” box, we turn off the ne to enter a password for administrators. Without this setting, for example, the “Customize” function (setting the appearance of the page) would not work for you.
If you want to enable RSS or REST API also for the public without entering a password, check the last two options. Apart from the first item, I recommend leaving the rest uncheck unless you have specific requirements.
New password – setting a password for accessing the website. This password will be common to everyone who wants to access the site.
Allow IP addresses – here you can fill in IP addresses for which password login will not be requir.
Allow Remember me – you can enable the option to remember the login for the specifi number of days (this means the same browser and computer).
Functionality testing
Since we chose not to require a password for administrators, we will try to open our website in a new anonymous window (where we are not logg in).
We should immiately see a login vietnam phone number data screen with a password box. Without entering the correct password, we will not be allow into the public part of the website.
Notes and important information at the end
It is necessary to remember that similar questions people also ask the login form to the administration can be access even without entering the main password. The plugin also does not solve the blocking of access to individual images if the user knows the direct URL address. They will bw lists continue to be load without limitation.