Apache module which provides access control based on client hostname, IP address, or other characteristics of the client request.
The directives provided by mod_access
are used in <Directory>
, <Files>
, and <Location>
sections as well as .htaccess
files to control access to particular parts of the server. Access can be controlled based on the client hostname, IP address, or other characteristics of the client request, as captured in environment variables. The Allow and Deny directives are used to specify which clients are or are not allowed access to the server, while the Order directive sets the default access state, and configures how the Allow and Deny directives interact with each other.
Both host-based access restrictions and password-based authentication may be implemented simultaneously. In that case, the Satisfy directive is used to determine how the two sets of restrictions interact.
In general, access restriction directives apply to all access methods (GET
, PUT
, POST
, etc). This is the desired behavior in most cases. However, it is possible to restrict some methods, while leaving other methods unrestricted, by enclosing the directives in a section.