Updated: 28 September 2026 · Applies to: cPanel & WHM 138 (Jupiter theme)

Yes. You can protect folders with a username and password (HTTP basic authentication, stored in .htpasswd files).

The easiest way is Files › Directory Privacy in cPanel, which creates the .htaccess and .htpasswd files for you. You can also write them yourself; see "Enable/Disable HTTP Authentication".

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket