Havenswift Hosting Ltd
All guides

How to configure directory and file privacy

Password protection via .htaccess and .htpasswd

It is possible to password protect an entire directory hierarchy, individual files or a group of files matching a pattern.  This prevents additional protection against unauthorised access for example to admin areas.

Adding password protection to a directory

When you add password protection to a directory, you provide a name for the directory that will appear in a popup in users' web browsers when they are prompted for a username and password. Then you create users and passwords to specify who can access the directory. When you protect a directory with a password, all directories beneath it are automatically protected as well, although it is possible to Exclude a sub-folder from password protection

Other guides

Still stuck? Sign in and raise a ticket, and somebody will answer it.

Sign in