How To Secure Downloadable Files

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default How To Secure Downloadable Files

    I'm building an application that will allow a group of people to upload and
    download files/documents entirely through a web browser. The files need to be
    secured using permissions (i.e. different users will have access to different
    files depending on the users permissions). Normally, I would use the
    Application.cfm file to secure .cfm files but this doesn't work for downloads
    since they don't have the ability to reference the Application.cfm file. I've
    found an approach for downloading that works by placing the download directory
    outside of the web root. The problem is -- how do I upload a document from the
    browser to a directory outside of the web root? Can someone recommend an
    approach for securing downloads while allowing for uploads from the browser?

    thanks,

    robinsf Guest

  2. Similar Questions and Discussions

    1. How secure are crippled PDF files?
      Let's say I have a PDF file that has the following document controls in place: 1. Disabled Printing 2. Disabled Copying 3. Disabled Save As... 4....
    2. Secure PDF's merged into 1 document from 2 different Secure Files, possible?
      I have multiple Secured PDF files that I have created. There is a possibility that my end user will need to merge multiple PDF files into 1 main PDF,...
    3. Best way to secure binary files
      I've got certain report files on my admin section that i'd like to secure. What is the best method of doing this on the web server? These could be...
    4. How to secure files and directories in asp.net
      Hi, How can i secure files and directories in asp.net ..... i'm using form based authentication to secure my asp.net pages but when any user...
    5. Restrict access to downloadable files
      Mintyman wrote: Darren, Check with your host first. They usually have some kind of script preinstalled that'll restrict access and prevent...
  3. #2

    Default Re: How To Secure Downloadable Files

    You are on the right track...you should store files for secure download
    outside the web root. As far as uploading goes, it's easy. When you use
    CFFILE with the upload option, you can place that file anywhere on the
    filesystem you want...it does not have to be in the web root (and should not be
    in this case). ColdFusion sees the whole file system, and so CFFILE is not
    limited to the web root. Just save the uploaded files whereever you want.

    Bryan

    blewis Guest

  4. #3

    Default Re: How To Secure Downloadable Files

    You found the first half of the answer (putting the files outside the web
    root). The second part is CFfile and/or CFcontent. Your CF will need to see
    the directory path to your downloadable files. I believe that I combined the
    CFfile (with read) and the CFcontent examples from Ben Forta's WACK. hth

    -brian


    "robinsf" <webforumsuser@macromedia.com> wrote in message
    news:cvvnjn$2nl$1@forums.macromedia.com...
    > I'm building an application that will allow a group of people to upload
    and
    > download files/documents entirely through a web browser. The files need
    to be
    > secured using permissions (i.e. different users will have access to
    different
    > files depending on the users permissions). Normally, I would use the
    > Application.cfm file to secure .cfm files but this doesn't work for
    downloads
    > since they don't have the ability to reference the Application.cfm file.
    I've
    > found an approach for downloading that works by placing the download
    directory
    > outside of the web root. The problem is -- how do I upload a document
    from the
    > browser to a directory outside of the web root? Can someone recommend an
    > approach for securing downloads while allowing for uploads from the
    browser?
    >
    > thanks,
    >

    Brian Hogue Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139