Syntax: deny from host host ...
Context: directory, .htaccess
Override: Limit
Status: Base
Module: mod_access
The deny directive affects which hosts can access a given directory. Host is one of the following:
all
Example:
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:
In this case browsers with the user-agent string BadRobot/0.9 will be denied access, and all others will be allowed.BrowserMatch ^BadRobot/0.9 go_away <Directory /docroot> order allow,deny allow from all deny from env=go_away </Directory>
See also allow from env and order.