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)
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.
|
|
|
|
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)
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.
|
|
|
|
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)
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
|
|
|
|