Solved

Secure File Downloads with Classic ASP on HOSTED server

Posted on 2006-11-22
4
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

628 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