2014年5月30日 星期五

Apache 允許特定網段

多個網段以空格分開
Order Allow,Deny
Allow from 192.168.16.0/24 192.168.20.0/24
 
 
 
Allow, Deny 順序 
Match      | Allow,Deny result   | Deny,Allow result
-------------------------------------------------------
Allow only | Allowed             | Allowed
Deny only  | Denied              | Denied
No match   | Default: Denied     | Default: Allowed
Match both | Final match: Denied | Final match: Allowed 
 
 
 
 
References : 
Apache httpd: How can I Deny from all, Allow from subnet, but Deny from IP within that subnet? - Server Fault

沒有留言:

張貼留言