Name
deny
Synopsis
deny
from
hostname
hostname
...
Description
[Within <Directory>
or .htaccess]
The deny
directive specifies which hosts are denied access
to a directory. The hostname can be one of the following:
- Domain name”
A domain name, like .oreilly.com. Hosts from that domain are denied access.
- Hostname"
A full hostname.
- Full IP address”
The IP address of a host.
- Partial IP address”
The first 1 to 3 bytes of an IP address, for subnet restriction.
- Network address/netmask
A full network address, followed by a full netmask. (i.e., 192.168.220.110/255.255.255.0)
- Network address/CIDR specification
A full network address, followed by an abbreviated netmask. (i.e., 192.168.220.110/24 is equivalent to 192.168.220.110/255.255.255.0)
-
all
" Using the word
all
means that all hosts are denied access.
Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.