mod_access.c
file, and
is compiled in by default. It provides access control based on client
hostname or IP address.
The allow directive affects which hosts can access a given directory. Host is one of the following:
all
allow from .ncsa.uiuc.edu
All hosts in the specified domain are allowed access.
Note that this compares whole components; bar.edu
would not match foobar.edu
.
See also deny, order, and BrowserMatch.
Syntax: allow from env=variablename
Context: directory, .htaccess
Override: Limit
Status: Base
Module: mod_access
Compatibility: Apache 1.2 and above
The allow from env directive controls access to a directory by the existence (or non-existence) of an environment variable. Example:
BrowserMatch ^KnockKnock/2.0 let_me_in
<Directory /docroot>
order allow,deny
allow from env=let_me_in
deny from all
</Directory>
See also deny from env
and order.The deny directive affects which hosts can access a given directory. Host is one of the following:
all
deny from 16
All hosts in the specified network are denied access.
Note that this compares whole components; bar.edu
would not match foobar.edu
.
Syntax: deny from env=variablename
Context: directory, .htaccess
Override: Limit
Status: Base
Module: mod_access
Compatibility: Apache 1.2 and above
The deny from env directive controls access to a directory by the existence (or non-existence) of an environment variable. Example:
BrowserMatch ^BadRobot/0.9 go_away
<Directory /docroot>
order deny,allow
deny from env=go_away
allow from all
</Directory>
See also allow from env
and order.order deny,allow
The order directive controls the order in which allow and deny directives are evaluated. Ordering is one of
allow
and deny
statement is evaluated, there is no "short-circuiting".
Example:
order deny,allow
deny from all
allow from .ncsa.uiuc.edu
Hosts in the ncsa.uiuc.edu domain are allowed access; all other hosts are
denied access.