Jump to content
xisto Community
Sign in to follow this  
shadowx

I Need A Hand With Some Htaccess Login Stuffs!

Recommended Posts

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:

AuthType BasicAuthName "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:
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://forums.xisto.com/no_longer_exists/ 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 :D Learn from my mistake if you get stuck like this!
Edited by shadowx (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.