Link to home
Start Free TrialLog in
Avatar of HumanScaleDev
HumanScaleDevFlag for United States of America

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/.htpasswd
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
Avatar of dgrafx
dgrafx
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of philip3270
philip3270

coldfusion runs as a seperate process, those commands work only on apache/linux.

Coldfusion cannot prevent direct folder access; as the web server "forks over" processing to CFML.