Digital download script

Hi all,

I have a ecommerce script that i wrote myself and I want to sell some images that people can download.

Does anyone have any tips on the best way to do this so that I can ensure people can download the file but also keep it secure from freebies?

Thanks all :slight_smile:


Off the top of my head…

  1. Get them to login somehow - so you’ve got an authorised session to work with.
  2. To allow download, check the user has a valid session then allow download from a secure folder using cfheader and cfcontent…

<cfcontent type=“application” reset=“true” file=“c:\images\myimage.jpg” type=“image/jpg” />
<cfheader name=“Content-Disposition” value="inline; filename=“c:\images\myimage.jpg” />