imbra - How to Set Up Password Protection for a Directory in iPanel

Restrict access to a specific directory on your website by requiring a username and password.

Steps

  1. Navigate to your website management page in iPanel.

    [screenshot: website management page]

  2. Click the Security tab.

    [screenshot: security tab]

  3. Find the Directory Protection or Password Protect section.

    [screenshot: directory protection section]

  4. Click Add Protection.

    [screenshot: add protection button]

  5. Enter the Directory Path you want to protect (e.g., /admin).

    [screenshot: directory path input]

  6. Set a Username and Password for access.

    [screenshot: username and password fields]

  7. Click Save to apply the protection.

    [screenshot: save button]

Tip: Password-protected directories use HTTP Basic Authentication. Combine this with SSL to ensure credentials are encrypted in transit.

Related Articles