QUOTE
Hi all.

Im currently trying to get a htaccess/htpasswd login system to work. Its extremely basic, just one username and one password. my htaccess code is as follows:

CODE
AuthType Basic
AuthName "Login"
AuthUserFile "/home/MYUSERNAME/public_html/***/***/.htpasswd"
require valid-user


obviously the stars mask the real directory


My testing code for my password file which is located in the above directory is as follows:
CODE
login1:login2


login2 is the password and im fairly sure i got the syntax right "username:password" is all right?


EDIT:
I think ive cracked it. I wont delete the thread, ive quoted my problem and shall now post my solution for others to learn from!

..this is so stupid... I came accross a website..it told me to use a tool to make my usernames and passwords and encrypt them. I thought this would ake things harder as i would need some sort of key to decrypt them. How wrong i was. The website is http://www.yolinux.com/TUTORIALS/LinuxTuto...Protection.html the bit im referring to is when it mentions using the exe file to create the htpasswd file. If you follow those steps you will get a useable username and password which you can copy and paste into the htpasswd file.

So now it all works. I quoted myself so you dont all think im harvesting credits, i dont need them anyway tongue.gif Learn from my mistake if you get stuck like this!

 

 

 


Reply