Order allow,deny Allow from 192.168.1.0/24 Satisfy any AuthUserFile /usr/local/apache/conf/htpasswd AuthGroupFile /dev/null AuthName "Please enter username and password" AuthType Basic require valid-user