Solved

Secure File Downloads with Classic ASP on HOSTED server

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now