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>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...