Password Protected Files

Discussion in 'Programming' started by twalters84, Oct 7, 2007.

  1. #1
    Hey there,

    I am looking for a way to make files protected through coldfusion.

    I am not talking about a password protected member's area. I know how to do that already.

    That does not stop somebody from typing the full URL and downloading files.

    Please advise. Thanks in advance.

    Sincerely,
    Travis Walters
     
    twalters84, Oct 7, 2007 IP
  2. amaze

    amaze Active Member

    Messages:
    594
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    You need to use <cfheader> to do this... Sorry just rushing out the door, but search on google and you will find. :)
     
    amaze, Oct 18, 2007 IP
  3. cfStarlight

    cfStarlight Peon

    Messages:
    398
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you use cfcontent to serve up the files, you can prevent direct downloads by simply obscuring the file locations or storing them outside the webroot.
     
    cfStarlight, Oct 18, 2007 IP