Skip to content
Help Center Search the help center/
Guide

Password-protect a folder on your website

With password protection, visitors must log in with a username and password to see a folder on your website. You set it up in DirectAdmin.

About 2 minutes Updated 6 Nov 2026

How to protect the folder

  1. 1

    Log in to DirectAdmin and open Password Protected Directories.

  2. 2

    Choose the folder you want to protect.

  3. 3

    Turn on the protection and enter a username and a password.

  4. 4

    Save.

How to know it worked

Done

Visitors must log in to see the folder.

Good to know

  • Use https, so the password is sent encrypted. SSL certificates are included for free. Turn on an SSL certificate for your website
  • Want to force every visitor to https? Turn on Force SSL with https redirect for the domain in DirectAdmin.
EmilLinusMelinda

Need more help?

Email [email protected] or call 08-519 70 666.