Find answers to your questions

Documentation

How to protect a folder with a password

Anyone can access subdirectories of public_html (folder containing all the public files of your hosting account) using a web browser. To restrict access to a particular directory under public_html:

  1. Connect to cPanel
  2. Click Directory Confidentiality in the Security topic. There you will find a list of subfolders.
  3. Click the folder icon to the left of public_html to see its contents. You will now see the subdirectories of public_html.
  4. To select a folder to protect, click its link (not the icon).
  5. On the Security Settings page, select the Protect this directory with a password checkbox.
  6. In the Protected directory name field, enter the title you want to assign to the selected directory, for example 'My Protected Folder'.
  7. Click Save
  8. At the bottom of the page, create a username and password that will be used to access this folder.
  9. Click Add/Edit Authorized User
  10. Check that the chosen directory is well and truly secure with the information provided by accessing your page directly via your web browser.

Note: You can only protect folders, not individual files.

For help with a Nuagerie service, open or follow up on a support request in your Client Area. For general questions, use our contact form.

Related Articles

What is cPanel and how do you access it? cPanel is the administration interface for your hosting account. It provides the tools available to that account without granting full server-administration access. Common toolsManage website files, domains and databases.Administer email accounts when mail is hosted within that service.Review storage and resource... cURL error 6: diagnose a hostname resolution failure The error curl: (6) Could not resolve host means cURL could not resolve the requested hostname. It can interrupt an update, download or API connection. On its own, it does not prove that your DNS resolver is faulty. For a Nuagerie hosting service, start by recording the error and its context. Do not change the... How can I activate my paid license after a trial? You can do this by running this command in SSH: /usr/local/cpanel/cpkeyclt It should look something like this: [root@cpanel home]# /usr/local/cpanel/cpkeyclt Updating cPanel license...Done. Update succeeded. Building global cache for cpanel...Done [root@cpanel home]# For help with a Nuagerie service, open or follow... When /cpanel, /webmail or /whm shortcuts do not work The /cpanel, /webmail and /whm shortcuts provide routes from a domain address to hosting management interfaces. An error on that route does not automatically mean your account is inaccessible. Identify the failing step so you can find the appropriate access method and give support useful observations. Start with a... Client Area, cPanel, email or website: choose the right sign-in The same domain name can be associated with several tools. Your Nuagerie service access, hosting panel, mailbox and website administration serve different purposes. Identifying the right account helps you avoid changing a password that will not resolve the problem. Which account do you need? Nuagerie Client Area:...