PDA

View Full Version : secure section?


veritas
5-6-02, 06:50 AM
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

veritas
5-6-02, 08:06 AM
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.

Ddr
5-6-02, 11:21 AM
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

MannInc
5-6-02, 12:51 PM
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 :)

veritas
5-6-02, 06:52 PM
ill check that thanks

veritas
5-6-02, 06:53 PM
nope it was spelled right. thats not the problem =(

Ddr
5-6-02, 07:17 PM
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

veritas
5-6-02, 07:25 PM
im using notepad =(

Ddr
5-6-02, 07:28 PM
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

veritas
5-6-02, 07:45 PM
yup it is /me still sad its not working

Ddr
5-6-02, 07:48 PM
Are you using FrontPage?

MannInc
5-6-02, 08:06 PM
Please PM me your FTP username/password and I'll see what the issue is with the .htaccess and .htpasswd files.

veritas
5-7-02, 01:24 AM
im not using front page. But I got it working, thanks everyone for the help

tuna
5-8-02, 01:13 PM
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?

veritas
5-9-02, 04:32 AM
first only encrypt the pw.
second transfer in binary (right?) make sure you change it
and then just pray haha thats all i did

tuna
5-9-02, 12:34 PM
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..

veritas
5-10-02, 07:53 AM
just leave it the way it is. thats what i did

MannInc
5-10-02, 12:48 PM
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!