Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

Secure File Downloads with Classic ASP on HOSTED server

Hi, my website is hosted by a 3rd party host so I can only access folders within my web, which are not secured.

But I want to have files which are only downloadable if a user has logged in ... so for example there will be:

www.website.com/login.htm
www.website.com/main.htm
www.website.com/files/file1.zip

Currently if you just type in http://www.website.com/files/file1.zip in your browser, it downloads.

But I want it to be secured, i.e. where you have to have logged in via login.htm first and so that it does NOT work if you just type in http://www.website.com/files/file1.zip in your browser.

Can anybody suggest a quick, lightweight solution?

Thanks in advance!
0
harcoj
Asked:
harcoj
1 Solution
 
WMIFCommented:
you can place your files in a folder that cant be guessed, then you would use an adodb stream to read the data and present the data to the browser as a file download.

check out this comment (not the answer) for an example:
http:Q_20551640.html#a8141790
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now