| home / internet / security / apache / chap5 / 2 | [previous] [next] |
|
|
| deny from |
deny from host host ... directory, .htaccess |
The deny from directive
controls access by host. The argument host
can be one of the following:
allAll hosts are denied access.
All hosts whose names match or end in this string are denied access.
The first one to three bytes of an IP address are denied access, for subnet restriction.
Network a.b.c.d and netmask w.x.y.z are denied access, to give finer-grained subnet control. For instance, 10.1.0.0/255.255.0.0.
The netmask consists of nnn high-order 1-bits. For instance, 10.1.0.0/16 is the same as 10.1.0.0/255.255.0.0.
| deny from env |
deny from env=variablename ... directory, .htaccess |
The deny from
env directive controls access by the existence of
a named environment variable. For instance:
BrowserMatch ^BadRobot/0.9 go_away
<Directory /docroot>
order allow,deny
allow from all
deny from env=go_away
</Directory>
Access by a browser called BadRobot v0.9 sets an environment variable
go_away, which in turn triggers
deny from.
| home / internet / security / apache / chap5 / 2 | [previous] [next] |
Created: March 3, 2003
Revised: March 3, 2003
URL: http://webreference.com/internet/apache/chap5/2/2.html