Skip to main content
Version: 2.x

Password protection


While there is no built-in password protection currently, you can use your reverse proxy to add it easily. A built-in authentication feature is planned for a future release.

You can restrict access to the dir-browser with a password. This is useful if you want to share your files with others but don't want to make them public.

  1. Generate a .htpasswd file with the following command. You may need to install the apache2-utils package first.
htpasswd -c .htpasswd <username>

Make sure to enter a password.

  1. Modify your reverse proxy.
<VirtualHost *:443>
AuthType Basic
AuthName "Authentication required"
AuthUserFile /path/to/.htpasswd
Require valid-user
  location / {
auth_basic "Authentication required";
auth_basic_user_file /path/to/.htpasswd;
  1. Now your browser will ask for a username and password.