Name
require
Synopsis
require
entity
names
...
Description
[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:
require user jdoe msmith
(All)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access