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
allmeans that all hosts are denied access.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access