Password-protecting a directory
Problem
You want to request a password to access a certain directory via a Web-browser.
Solution
Use the Apache .htaccess feature.
Discussion
.htaccess files provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof. Password protection is one of the features offered by .htaccess files.