cancel
Showing results for 
Search instead for 
Did you mean: 

Password Protecting Webspace

billinswansea
Member

 

I have a paid-for BT hosted site and am trying to protect part of this using .htaccess / .htpasswd. I have placed the password file with encrypted password at public (root) and the .htaccess file in the folder I wish to protect. I do get prompted for username / password when I attempt to access the protected folder but the details entered are not recognised.

 

The .htaccess file looks like:

 

AuthUserFile /public/myfolder/protected/.htpasswd
AuthType Basic
AuthName "Protected Folder"
Require valid-user

 

Any suggestions as to errors in this process would be appreciated.

 

Bill

 

 

12 REPLIES 12

futurenets
Member

tried all of the aboce and get

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, or webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log

 

when trying to access protected folder when using .htaccess & .htpassword as described. are you sure BT are not restricting this to protect there services?

orthohin
Grand Master

Thanks ,

 

I have the same prolem and got the solutions.

 

 

 

______________

 

 

Orthohin

jonathan276
Member

Im trying to password protect a customer login area of my webspace but when i input .htaccess and .htpassword into my public directory it is password protectiong my whole website not the the single page im after.

 

Can anyone shed any light on this for me?

 

my .htaccess is

 

AuthUserFile public/fleet.html/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic

<limit GET POST>
require valid-user
</limit>

 

Jonathan