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

  • 29 Users Found This Useful
Was this answer helpful?

Related Articles

How to exclude a subfolder from password protection with htaccess file

A very useful and simple to use method of protecting access to a directory or an entire account...

Redirects: 301, 302 and how to set them up

A redirect sends a visitor from one address to another. Choosing the wrong type quietly costs you...

Common .htaccess mistakes

.htaccess is powerful and unforgiving. One wrong character takes the whole site down with a 500...

Blocking bad bots and unwanted traffic

Not all automated traffic is welcome. Some ignores robots.txt entirely, so blocking has to happen...