Forum Moderators: phranque
Anyway, I would like to use the .htaccess file to protect one of my webpages/directories. I am not doing anything too fancy here so if someone wants me to post my code I really don't mind. Anyway, here is what I have so far:
AuthUserFilehome /whatgoeshere?/.htpasswd
AuthName myname
AuthType Basic
<Limit GET>
require valid-user
</Limit>
I got this far but have no clue what the local directory is. Thought it was just a simple /username/directory.
Also, have the .htpasswd file. Does this file need to be encryped? or can it be in plain text? Where can this file reside? Sorry for the ton of questions here but a newbee to this! Appreciate
TIA.
Dave
--------------
NOTE: the /x/x/x is the letters of your name. Example my name, ken /k/e/n/
--------------
The password file .htpasswd
kbear:55rKCZC8fvAls
waite:17P2cS.0soDyI
The user name is regualar ascii but the password has to be encoded. Goto this page: [euronet.nl...]
Place both these files in the directory you want to protect. If this does not work, post or stickymail me.
Good luck! I also called GoDaddy and for whatever reason they do not support .htaccess anymore, but if you are on an appache webserver you can use. Go figure! Let me know how you do. TTL
[edited by: jdMorgan at 4:29 am (utc) on Nov. 9, 2004]
[edit reason] Obscured specifics per TOS. [/edit]
I've examined the code generated by PHPACCESS105 and compared to your successful and my unsuccesssful code. I see no differences, except that the encrypted characters representing the passwords are different, of course. I had tried encryption algorithms on several web sites. <snip> It is a mystery to me, but now it works. Hopefully it will continue to work, because my confidence in troubleshooting is zero.
If I upload with DreamWeaver it doesn't work (text.ASCII requirement?), Fetch does.
Just today GoDaddy told me they do support .htaccess. In my experience, their techinical support has beren inconsistent, at best.
Thanks again.
Dave
[edited by: jdMorgan at 4:56 pm (utc) on Nov. 9, 2004]
[edit reason] Removed unnecessary URLs per TOS. [/edit]