Solved

Secure File Downloads with Classic ASP on HOSTED server

Posted on 2006-11-22
4
200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
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…

756 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