Title: Protecting a file - charging for download

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-----
From: Lee Fortnam [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 11:54 AM
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Protecting a file - charging for download

 

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

Reply via email to