Move the documents outside of a web accessible directory but
still accessible to ColdFusion
Perform your login tests in the Application.cfm
When you output your filelist for selection, the url should
call a
template (this code) that does the file retrieval
Look at the cfib.org site for the getMimeType() udf
<cfsetting enablecfoutputonly="yes">
<cffile action="read" file="#filepath#"
variable="tempFile">
<cfcontent type="#getMimeType(fileName)#" reset="yes">
<CFHEADER NAME="content-disposition" VALUE="attachment;
filename=#fileName#">
<cfoutput>#tempFile#</cfoutput>
<cfsetting enablecfoutputonly="no">