Author |
Message |
stilekid007
Junior WebHelper
Joined: 22 Nov 2005
Posts: 4
|
Posted:
Tue Nov 22, 2005 1:33 pm (18 years, 5 months ago) |
|
Hello,
I am trying to secure (Password) a file on my ftp server and I am using the .htaccess file and .htpasswd file. It doesn't seem to password protect the file cars.txt.
Can you have a look at my two file's content and tell me if I am doing something wrong? (all 3 files are in the root directory)
P.S. The password dialog box never pops up (It just lets me access the file with now password)
.htaccess file
Code: | AuthName "Realm Name"
AuthType Basic
AuthUserFile /.htpasswd
Allow From All
<Files cars.txt>
require valid-user
</Files> |
.htpasswd file.
Code: | frances:WrU808BHQai36
john:iABCQFQs40E8M
lisa:FAdHN3W753sSU |
Thank you and have a great day!
Stilekid007 |
________________________________ Stilekid007 |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Nov 22, 2005 6:49 pm (18 years, 5 months ago) |
|
It's been a long time since I did password protection by hand with .htaccess files, but try removing "Allow From All".
Daniel |
________________________________
|
|
|
|
stilekid007
Junior WebHelper
Joined: 22 Nov 2005
Posts: 4
|
Posted:
Tue Nov 22, 2005 7:05 pm (18 years, 5 months ago) |
|
Hello Daniel,
Thank you for your reply.
I found a generator for the two files http://tools.dynamicdrive.com/password but even with that code the file doesn't give me a password dialog.
I will have to try something else. Do you have any suggestions of something I should check?
Or do you know of any other methods for password protecting files?
Thank you and have a great day!
Stilekid007 |
________________________________ Stilekid007 |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Nov 22, 2005 7:06 pm (18 years, 5 months ago) |
|
Are you running the Apache web server? If so are you sure that your host hasn't disabled .htaccess files? Try putting "deny from all" on its own in an .htaccess file. If that fails then this is most likely the case. |
________________________________
|
|
|
|
stilekid007
Junior WebHelper
Joined: 22 Nov 2005
Posts: 4
|
Posted:
Tue Nov 22, 2005 7:39 pm (18 years, 5 months ago) |
|
Daniel,
I am downloading the Apache file now. I was starting to download it las night but never finished. So obviously I'm not running Apache server but the "deny from all" did not work, so I will see if my host has .htaccess files disabled.
Thank you for your help!
Stilekid007 |
________________________________ Stilekid007 |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Nov 22, 2005 7:41 pm (18 years, 5 months ago) |
|
The Apache web server has to be installed by your host, not you, so downloading it won't help. But regardless I suggest you contact your host - the problem is probably not with your use of the .htaccess file. |
________________________________
|
|
|
|
stilekid007
Junior WebHelper
Joined: 22 Nov 2005
Posts: 4
|
Posted:
Tue Nov 22, 2005 7:49 pm (18 years, 5 months ago) |
|
Oh, Alright - I'll do that. I appreciate your help!
Stilekid007 |
________________________________ Stilekid007 |
|
|
|
|
Page generation time: 0.125955 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme