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

  • 0 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...

How to Stop Search Engines from Crawling your Website

In order for your website to be found by other people, search engine crawlers, also often known...