Jump to content

Recommended Posts

Posted

I tried to use .htaccess to password protect some files but instead it disabled them. Here is what I tried:

 

<files ~

"(file1|file2|ffile3).pl">

AuthUserFile /home1/hairydj/public_html/_vti_pvt/service.pwd

AuthGroupFile /home1/hairydj/public_html/_vti_pvt/service.grp

AuthName EnterYourPassword

AuthType Basic

require valid-user

</files>

Posted

Try this:

<Files ~
"(file1|file2|file3).pl">
AuthUserFile /home1/hairydj/public_html/_vti_pvt/service.pwd
AuthGroupFile /home1/hairydj/public_html/_vti_pvt/service.grp
AuthName "Enter Your Password"
AuthType Basic
Order Allow,Deny
require valid-user
</Files>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...