Use cPanel → Files → Directory Privacy when the feature is enabled.
- Navigate to the directory and select Edit.
- Enable Password protect this directory.
- Enter a label for the protected area.
- Save the security setting.
- Create at least one authorized user for the directory.
The label is descriptive text stored in the configuration; it does not rename the directory.