>>How do you prevent someone from entering the URL in their browser to
a file that requires a login in an app to reveal?
1. Put those files in a special directory and add ".cfm" to the file name;
2. store in your databse both the original and the storage file names;
3. Put in the same directory an Application.cfm template that will just
display something like
"404 Error"
4. use anywhere in your site some download.cfm template that send the
file to the user with some code like:
<CFHEADER NAME="Content-disposition"
VALUE='Attachment;filename="#OriginalFileName#"'>
<CFHEADER NAME="Content-Type" VALUE="application/octet-stream">
<CFCONTENT TYPE="application/octet-stream"
FILE="#Path##LocalFilename#">
where OriginalFileName is the original name of the file
and path and local file name is the place the file is stored as a pseudo
CF template.
--
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267132
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4