4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 .htaccess password protection not working.
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
stilekid007
Junior WebHelper
Junior WebHelper


Joined: 22 Nov 2005
Posts: 4

PostPosted: Tue Nov 22, 2005 1:33 pm (18 years, 4 months ago) Reply with QuoteBack to Top

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
OfflineView User's ProfileFind all posts by stilekid007Send Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Nov 22, 2005 6:49 pm (18 years, 4 months ago) Reply with QuoteBack to Top

It's been a long time since I did password protection by hand with .htaccess files, but try removing "Allow From All".

Daniel

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
stilekid007
Junior WebHelper
Junior WebHelper


Joined: 22 Nov 2005
Posts: 4

PostPosted: Tue Nov 22, 2005 7:05 pm (18 years, 4 months ago) Reply with QuoteBack to Top

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
OfflineView User's ProfileFind all posts by stilekid007Send Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Nov 22, 2005 7:06 pm (18 years, 4 months ago) Reply with QuoteBack to Top

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.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
stilekid007
Junior WebHelper
Junior WebHelper


Joined: 22 Nov 2005
Posts: 4

PostPosted: Tue Nov 22, 2005 7:39 pm (18 years, 4 months ago) Reply with QuoteBack to Top

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
OfflineView User's ProfileFind all posts by stilekid007Send Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Nov 22, 2005 7:41 pm (18 years, 4 months ago) Reply with QuoteBack to Top

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.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
stilekid007
Junior WebHelper
Junior WebHelper


Joined: 22 Nov 2005
Posts: 4

PostPosted: Tue Nov 22, 2005 7:49 pm (18 years, 4 months ago) Reply with QuoteBack to Top

Oh, Alright - I'll do that. I appreciate your help!

Stilekid007

________________________________
Stilekid007
OfflineView User's ProfileFind all posts by stilekid007Send Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.199223 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme