Solved

Secure File Downloads with Classic ASP on HOSTED server

Posted on 2006-11-22
4
199 Views
Last Modified: 2012-05-05
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
Comment
Question by:harcoj
4 Comments
 
LVL 22

Accepted Solution

by:
WMIF earned 50 total points
ID: 17997940
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question