Example: Restricting access to a department:
order deny,allow
deny from all
allow from .dept.cam.ac.uk
- Start with all hosts allowed access.
- Then apply denials.
- Then override with approvals.
Example: Restricting access and cutting off your head of dept.:
order allow,deny
allow from .dept.cam.ac.uk
deny from bosspc.dept.cam.ac.uk
deny from bossmac.dept.cam.ac.uk
- Start with all hosts denied access
- Then apply approvals
- Then override with denials.
- Leading dot indicates a domain.
- Multiple
allow
s or deny
s.
- Can be used inside a
<Directory>
or
<Location>
block.