Password protecting websites
Submitted by macboytoronto on Mon, 2005-12-12 18:41.
I recently read an article here about how to password protect webs sites. I followed the instructions as outlined in the tutorial, but I have been unable to reproduce the results which were outlined in this tutorial. Specifically, getting the login window to appear requesting username and password.
The original article appeared on this web site. The exact url is http://creativebits.org/How_to_Password_Protect_websites_usinghtaccess.
Roland :)
Some possible mistakes: -
Some possible mistakes:
- htaccess files must be uploaded as ASCII mode, not BINARY
- you may need to CHMOD (set permissions) the htaccess file to 644 or (RW-R--R--)
- htaccess is an Apache thing. Do you have an Apache server?
- most commands in htaccess are meant to be placed on one line only
re: your reply to password protecting web sites query
Thanks for your info.
I created the .htaccess using Pico.
I verified permissions and they are set to 644 for this file.
I am running Apache as part of my Tiger installation.
In answer to your last question, I typed out the information for the .htaccess file with single breaks between the major lines.
Roland :)
files
Can you copy and paste the content of the htaccess files and the password file here?
Will
--
http://www.macscan.net/
software
you could try this program to help:
http://homepage.mac.com/onar/apacheprotect/
--
http://www.macscan.net/