Can you talk me through the steps of making downloads on my site secure?

Discussion in 'Security' started by Audiomad, Jul 16, 2008.

  1. #1
    can anyone talk me through the steps of making my server secure for the sale of downloads. I wont be able to afford the ssl to start with and I dont know how the cgi-bin works and help is much appriciated.
     
    Audiomad, Jul 16, 2008 IP
  2. wattie

    wattie Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For the SSL encryption - you can do a self-signed certificate (but it will give warnings)...

    I actually understand your question other way - I guess you talk about how to secure the downloads from unauthorized downloading from external party. You can do "temporary" downloads for your users. You will have your downloadable file in a "secret" folder and name on your site. When somebody purchase and wants to download - you move the original file to temporary folder with temporary name and a cron job will be added to delete it after specified time period (long enough that you are 100% sure that the user can downloaded it)...

    Also few techniques are available to "hide" the actual location of the file (even the one with temporary name)... Go for it :) Use sessions, etc
     
    wattie, Jul 16, 2008 IP
  3. Audiomad

    Audiomad Peon

    Messages:
    1,028
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you for you help
     
    Audiomad, Jul 16, 2008 IP
  4. gjvblack

    gjvblack Active Member

    Messages:
    338
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #4
    You can set password protected directories and set temporary passwords for users. Or you can try using cookies or sessions to allow downloads at a limit.
     
    gjvblack, Jul 16, 2008 IP
  5. Yousif

    Yousif Banned

    Messages:
    233
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, code your application with PHP. It's easy, and secure. Use Base64 encoding, following an MD5 hash algorithm. Additionally, if it's via a form, make sure you sanitize the input before you display it. Anything in-depth I can assist you with a simple PM, good luck.
     
    Yousif, Jul 16, 2008 IP