Password Protecting your Web Site
You can password protect directories of your web site, so only users with a username and password can access that directory and files within it.
AuthUserFile /www/yourdomain/file_to_protect/.htpasswd AuthGroupFile /dev/null AuthName ByPassword AuthType Basic <Limit GET> require user myfriend </Limit>
htpasswd -c .htpasswd myfriend
Protection by password for multiple users
member-users: user1 user2 user3 ... etc
AuthUserFile /www/yourdomain/membersonly/.htpasswd AuthGroupFile /www/yourdomain/membersonly/.htgroup AuthName ByPassword AuthType Basic <Limit GET> require group member-users </Limit>
htpasswd /www/yourdomain/membersonly/.htpasswd user1 htpasswd /www/yourdomain/membersonly/.htpasswd user2, etc
Protect your page by Domain, Hostname, and IP address
You can setup a directory so that the files could only be view from a few select computers. For example, if you want to setup the membersonly directory so that pages can only be viewed by computers with the name richmond.home.co.uk and all the computers will the name ending co.uk Then you can use this code in the .htaccess file.
<Limit GET> order deny,allow deny from all allow from richmond.home.co.uk *.co.uk </Limit>
For more information, please refer to the Authentication Tutorial from NCSA
email NetBuyssm.
Any Comments? Please Call: 800-634-9518
Member of the Internet Link Exchange