I have a section that I have password protected using EE script and that works fine. I have pdf files within that section and if a user visits the URL of the pdf file, it is no longer password protected, as it is in an upload directory.
How do I password protect an upload directory? I have used cPanel and entered the directives manually without success. I can tell it is partly working as I am returned to the default homepage when the Authenication language is in place, so I can’t access the pdf files, but I do not get a dialog box that allows me to enter password info.
My .htaccess files looks like:
AuthType Basic
AuthName “secure”
AuthUserFile “/home/mysite/.htpasswds/public_html/mydir/passwd”
require valid-user
The passwd file is in the proper location, as is the directory I’m trying to protect.
Thanks for any help!