Use
this code: <cfheader
name="Content-Disposition"
value="attachment;filename=#filename#"> <cfcontent file="#absolute_path_to_file#"
type="unknown"> make sure that before
they get to this page that they are logged in and stuff or you can just have a
password protected directory on the web server -----Original Message----- Dear All, Have been monitoring the list for a while and have to
say that you lot really know what you're talking about, anyway, enough of the
compliments. I am looking to create a download site but not sure
how I can protect the content (files) from being downloaded directly if someone
can get the URL to the file during the save process. This could then be sent on
to other people to allow them to download it without paying for it. Is there
anyway I can hold the files out of the web directory and only allow someone
logged in to download the content? Any other possible ways of doing this are more than
welcome, the above is just an example. Thanks in advance. Lee |
Title: Protecting a file - charging for download
- [ cf-dev ] Protecting a file - charging for downlo... Lee Fortnam
- RE: [ cf-dev ] Protecting a file - charging f... Rex A.
- RE: [ cf-dev ] Protecting a file - chargi... Lee Fortnam
- RE: [ cf-dev ] Protecting a file - charging f... Russ Michaels \(Snake\)
- RE: [ cf-dev ] Protecting a file - charging f... Lucas Sherwood