|
|
|
|
![]() ![]() |
Jul 17 2007, 11:52 AM
Post
#1
|
|
|
A clever man learns from his own mistakes, a WISE man learns from those of OTHERS ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 978 Joined: 12-April 06 From: Essex, UK Member No.: 21,719 |
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 This post has been edited by shadowx: Jul 17 2007, 11:22 PM |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 05:32 PM |