Ana sayfa > Bilgi Merkezi > English > cPanel > cPanel > Password protecting a directory on cPanel
Password protecting a directory on cPanel
Password protecting a directory restricts access to certain parts of your website by requiring visitors to enter a username and a password. This password process is also referred to as a type of “authentication” process.
cPanel Password Protect Directory icon.
(cPanel >> Security >> Password Protect Directories)
You can manually create password protect by using the following steps.
Create .htpasswd file for users and passwords:
htpasswd -c /path/to/file/.htpasswd username
This command will prompt you for the password.
AuthName “Members Only”
deny from all
You can protect more than one file by using wildcard names. On the FilesMatch line, follow one of these examples:
AuthName “Member Only”