Password defending a directory limits access to secure sections of your website by ordering visitors to enter a username and a password. This password method is also pointed to as a type of “authentication” method.
cPanel Password Protect Directory image.
(cPanel >> Security >> Password Protect Directories)
You can manually generate password security by using the next steps.
Create a .htpasswd file for users and passwords:
htpasswd -c /path/to/file/.htpasswd username
This post will prompt you for the password.
AuthName “Members Only”
deny from all
You can preserve more than one file by applying wildcard names. On the FilesMatch line, support one of these cases:
AuthName “Member Only”