¿Cómo puedo proteger con contraseña un directorio en cPanel?

Password protection adds a login prompt before anyone can view a folder, useful for staging areas, private downloads, or admin sections. This guide explains how to set it up in cPanel.

What it does #

It adds a username and password prompt to a specific folder, blocking access to everything inside until the visitor logs in. It works at the server level, separate from any application login.

Protecting a directory #

  1. Inicia sesión en cPanel.
  2. En el Archivos sección, abrir Directory Privacy.
  3. Navigate to and select the folder you want to protect.
  4. Tick Password protect this directory and give it a name.
  5. Save, then create a user with a username and password.

Managing users #

  • Add more users for the same folder as needed.
  • Elimina a los usuarios cuando ya no necesiten acceso.

Desactivar la protección #

Return to Directory Privacy, select the folder, and untick the protection option, or remove the users.

Consejos #

  • Utiliza contraseñas seguras y únicas.
  • Protect the exact folder you intend.
  • Combínalo con SSL para que el inicio de sesión esté cifrado.

Solución de problemas #

  • No prompt appears: confirm protection is on the correct folder.
  • Sin poder entrar: disable protection from cPanel and set it up again.

¿Necesita ayuda? #

If protection is not working, our support team can check it over live chat.

Cuáles son sus sentimientos