View Full Version : secure section?
is there a way to make a secure area of my website where users have to log in to gain access?
alphadesk
5-6-02, 07:43 AM
Hi veritas,...sure
You will have to set up .htaccess and .htpasswd
Here is a tutorial to show you how.
http://www.javascriptkit.com/howto/htaccess.shtml
Here is another I found today that has some good info.
http://he.net/info/htaccess/demo.html
thanks, sorry for repeating questions. I found the post where you helped someone else with same question.
While your reading this maybe you can help. I set up the files .htaccess and .htpasswrd) put when i try to log into the secure section it wont accept my password. Any ideas? I made sure the password was right and the path was correct as well. Maybe there is some secret trick i dont know about.
Did you encrypt your password? That is needed. For more info on that, check out MannInc's Unnofficial Tutorial page:
http://ups.manninc.com/
Look for the link labeled "here" down near the bottom of the Password Protection Tutorial.
Dale
Thanks Ddr.
veritas,
Also make sure the password file is .htpasswd, not .htpasswrd as you typed in your post. It was probably just a typo in the post, but thought I'd make sure :)
nope it was spelled right. thats not the problem =(
What text editor are you creating the htaccess file with? If you are not using a pure text editor like Notepad, it could be adding extraneous symbols that are causing the htacces to not work.
Dale
If you can, would you post your htaccess and htpasswd files for us to look over? You can change the sensitive info.
Thanks
Dale
BerksWebGuy
5-6-02, 07:30 PM
Make sure your .htpasswd is encrypted meaning that if your password is - powweb - it might look something like this - 5dfr8w2wddc - this is not really the right translation, but you get the idea.
Good luck
yup it is /me still sad its not working
Please PM me your FTP username/password and I'll see what the issue is with the .htaccess and .htpasswd files.
im not using front page. But I got it working, thanks everyone for the help
Veritas what was the problem? got exactly the same myself
won't recognise the password..
Creating both files in notepad no txt extention
Transfered in auto via Ftp
Created 2 usernames/passwords got them both there in encrypted form but neither password will work.
What was your solution to that problem?
first only encrypt the pw.
second transfer in binary (right?) make sure you change it
and then just pray haha thats all i did
Thanks,
we enter both the user and password into the encrypter tho huh?
just the password gets encrypted tho?
fred rgtupo comes out as fred:ase27FpLJhRSw
Only place i'm not sure on is in notepad when you save as all files rather than .txt theres is the option of saving as
Ansi
unicode
Unicode Big Endian
UTF-8
At the moment mines using Ansi is that ok??.... Anyone??
Seems to go looking for the password but never accepts it..
just leave it the way it is. thats what i did
Simply name the files htaccess.txt and htpasswd.txt and upload them in ASCII mode. Than rename them on the the server to .htaccess and .htpasswd respectively.
Hope this helps!
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.