Document Downloads

Author Message
mlbarbour

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 4/28/2008
  • Status: offline
Document Downloads Monday, April 28, 2008 2:19 AM (permalink)
0
I have a client who will be selling articles from their print magazine online as PDFs. He would like to hide the download directory or filename so that the purchaser cannot send the URL to another customer (customers must be logged in to access the download directory). Any suggestions would be appreciated.
 
#1
    Rischip

    • Total Posts : 519
    • Scores: 2
    • Reward points : 0
    • Joined: 3/26/2007
    • Status: offline
    RE: Document Downloads Wednesday, August 27, 2008 2:01 AM (permalink)
    0
    Probably the easiest way would be to implement some sort of random query string which can be associated to a file in a database.
    Probably use a GUID.

    DB
    Table FileObFus
    Fields

    QryString                                                                                  |                         Filename
    0800b9a8-1b73-4db2-867e-f0c2d128019d                                           Somefiletodownload.ext
    Then on the download page reference the qrystring to pull the file name out of the database.
    delete the query string from the database once it's used and it is no longer valid.
    Not even for the first customer.

    Code in download page:

    someQryString = GetQueryString("QryString")

    Select FileName from FileObFus Where QryString = '" & someQryString & "'"

    do download routine, probably adodb stream.





     
    #2
      TNO

      • Total Posts : 2094
      • Scores: 36
      • Reward points : 0
      • Joined: 12/18/2004
      • Location: Earth
      • Status: offline
      RE: Document Downloads Friday, October 17, 2008 2:28 AM (permalink)
      0
      Don't put the files under wwwroot folder (or whatever your domain pages are kept). Use an asp page to give people the results and let the code on the server get the file from the proper folder so the user doesn't have direct access.
      To iterate is human, to recurse divine. -- L. Peter Deutsch
       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9