======================================= protect a directory --------------------------------------- AuthType Basic AuthName "Password Required" AuthUserFile /path/to/passwd AuthGroupFile /path/to/group Require user mike Require group editor Require ip 127.0.0.1 192.168.100.0/24 ======================================= protect a file --------------------------------------- AuthType Basic AuthName "Password Required" AuthUserFile /path/to/passwd AuthGroupFile /path/to/group Require user mike Require group editor Require ip 127.0.0.1 192.168.100.0/24 --------------------------------------- htpasswd /path/to/passwd mike ed /path/to/group ::: editor: mike :::