Attention: PROnetworks has upgraded our forum from phpbb2 to phpbb3!!

Please head over to our new converted forum at: http://www.pronetworks.org/forums/

This old forum will remain 'read-only' until approximately February 2009. We look forward to seeing you at the new forum!
Author Message
Weaver
PostPosted: Tue Oct 12, 2004 9:41 pm Reply with quote

PROfessional Member
 
 


Joined: 18 Jun 2002
Posts: 2587
Location: /home/weaver/
A writeup I did not too long ago for some folks. A short tutorial on password protecting areas of a site with .htaccess and .htpasswd files.

http://weavervsworld.com/docs/other/passprotect.html

-Weaver
 
Back to top
Dj_baby
PostPosted: Wed Oct 13, 2004 12:01 am Reply with quote

PRO Level 5
 
 


Joined: 02 Jun 2004
Posts: 165
Location: belgie
i think there gona be noobs that wuld ask how do i get on it i mean
how the can type and where the can do that
"htpasswd -c"

the program that the can use fore doing that
my favoriet programm is putty
if you know what i mean


greets Dj_baby
 
Back to top
sceaser
PostPosted: Thu Feb 23, 2006 1:38 am Reply with quote

PRO Level 3
 
 


Joined: 28 Dec 2004
Posts: 59
Location: MARS
Just remember this is not secure anyone with some type of sniffer
can read this data as it is sent over the network. Just like ftp without encryption your asking for trouble for sensitive documents.
 
Back to top
Weaver
PostPosted: Thu Feb 23, 2006 1:48 am Reply with quote

PROfessional Member
 
 


Joined: 18 Jun 2002
Posts: 2587
Location: /home/weaver/
sceaser wrote:
Just remember this is not secure anyone with some type of sniffer
can read this data as it is sent over the network. Just like ftp without encryption your asking for trouble for sensitive documents.


Not just anyone. They would have to be between your machine and the target server in the case of a network sniffer.

Overall it is weak and dangerous compared to other systems available. However, if you utilize HTTPS (SSL/TLS) you are fine.

-Weaver
 
Back to top
imnuts
PostPosted: Thu Feb 23, 2006 1:59 am Reply with quote

Support Team
 
 


Joined: 24 Mar 2004
Posts: 14585
Location: Boothwyn, Pennsylvania
i found a little better (IMO) way of doing the same basic thing. Instead of creating a .htaccess file in the folder, I add the directory protection to the httpd.conf file so that i know people can't download the .htaccess file, although apache isn't supposed to let them anyway, it makes me feel a little better. From what I've read on it, Digest instead of Basic should be slightly more secure as I think that encodes the transmitted info, but isn't as compatible with stuff.
 
Back to top
Weaver
PostPosted: Thu Feb 23, 2006 10:15 am Reply with quote

PROfessional Member
 
 


Joined: 18 Jun 2002
Posts: 2587
Location: /home/weaver/
imnuts wrote:
i found a little better (IMO) way of doing the same basic thing. Instead of creating a .htaccess file in the folder, I add the directory protection to the httpd.conf file so that i know people can't download the .htaccess file, although apache isn't supposed to let them anyway, it makes me feel a little better. From what I've read on it, Digest instead of Basic should be slightly more secure as I think that encodes the transmitted info, but isn't as compatible with stuff.


The httpd.conf is how I would recommend doing it if you are one of the only users. However, if you have multiple users utilizing your Apache server, it can get to be a pain in the neck and thus .htaccess files are nice.

Generally Apache is setup to disallow ^.ht* files from being downloaded. If yours isn't, somebody (including myself) would be glad to show you.

Digest authentication is better than Basic, but isn't well supported, rather it is obscure. Digest uses MD5 hashes whereas Basic just base64 encodes the password.

-Weaver
 
Back to top
sceaser
PostPosted: Sun Feb 26, 2006 5:41 pm Reply with quote

PRO Level 3
 
 


Joined: 28 Dec 2004
Posts: 59
Location: MARS
Yes very correct the sniffer would have to be localish and yes SSL is a good way to enrypt the pass info for a unencrypted htaccess file
I have just done that very thing on my site for a few security tools
 
Back to top
Back to top
Index >> Webmaster Domain & Code Room >> Password Protection with .htaccess and .htpasswd

Page 1 of 1

 


Tired of the Ads? Registered users have 80% less adverts.