Webmaster in a Nutshell, 3rd Edition By Robert Eckstein, Stephen Spainhour
Table of Contents
Chapter 18. Apache Configuration
require
require entity names ...
[Within <Directory>, or .htaccess ]
Specifies which authenticated users or groups can access a given directory, typically in a <Limit> section of an access control file. A require line requires that all of the appropriate Auth* directives are specified for the directory. entity is one of the following:
user
Only the named users can access this directory with the given methods . Each name is therefore a username that exists in the AuthUserFile (specified password file).
group
Only users in the named groups can access this directory with the given methods. Each name is therefore a group name that is listed in the specified group file.
valid-user
All users listed in the AuthUserFile (specified password file) are allowed access upon providing a valid password.
For example, the following restricts access to a directory to a few key users: