Password protection is useful if you need to limit public from access certain folder. It requires the user to enter username and password in order to access your site from the website.
To enable it, log in to CPanel, and select Password Protect Directories/Directory privacy
select the folder you want to protect and set the credential.