HumanScaleDev
asked on
Password protect a directory over the Web
Hello,
I have a few links posted on the website and I'd like to password protect the folder where the users are pulling the downloads from these links.
I've tried:
.htaccess:
AuthUserFile mywebsite.com/downloads/.h tpasswd
AuthGroupFile /dev/null
AuthName "Secure Document"
AuthType Basic
<LIMIT GET PUT POST>
require user someuser
</LIMIT>
and the .htpasswd file
htpasswd -c .htpasswd 123456
but it seems like this doesn't work on a Coldfusion server.
Basically when the users go to the website and they click on one of the download links I want them to be prompted for a username and password and is it possible to display a message on the pop up? say...if you need access to the files please contact John Smith.
Thanks!
I have a few links posted on the website and I'd like to password protect the folder where the users are pulling the downloads from these links.
I've tried:
.htaccess:
AuthUserFile mywebsite.com/downloads/.h
AuthGroupFile /dev/null
AuthName "Secure Document"
AuthType Basic
<LIMIT GET PUT POST>
require user someuser
</LIMIT>
and the .htpasswd file
htpasswd -c .htpasswd 123456
but it seems like this doesn't work on a Coldfusion server.
Basically when the users go to the website and they click on one of the download links I want them to be prompted for a username and password and is it possible to display a message on the pop up? say...if you need access to the files please contact John Smith.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Coldfusion cannot prevent direct folder access; as the web server "forks over" processing to CFML.