Re: Download question
From: The Clansman (no_at_pls.com)
Date: 08/07/04
- Next message: Shiva: "Re: How do I do to underline a character in the property text of Button or Label ? I have to manage the AccessKeys. THANX"
- Previous message: Susil Patro: "Adding a new dataset in Crystal report / CrystalDecisions.CrystalReports.Engine dll error with VS 2003 /"
- In reply to: Craig Deelsnyder: "Re: Download question"
- Next in thread: Chandra Sekhar: "Re: Download question"
- Reply: Chandra Sekhar: "Re: Download question"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 7 Aug 2004 11:01:40 -0300
thanks,
but I'm using a hosting service, the web server is not a server that I have
access....
is it possible to configure this at the hosting server?
thanks
"Craig Deelsnyder" <cdeelsny@no_spam_4_meyahoo.com> wrote in message
news:opsccmo2w475dg5d@cowboy...
> On Sat, 7 Aug 2004 00:48:42 -0300, The Clansman <no@pls.com> wrote:
>
> > Hi,
> > I am developing a site for a company and this site will have files
> > available
> > for the customers to download, but only the customers loged in will be
> > able
> > to download these files and the files availables for each customer will
> > depend on the type of the customer.
> >
> > so how can I prevent a user from downloading a file by typing the full
> > url
> > (example, http://www.company.com/file.exe)
> >
> > if the user type the url of the file, I want the user to be redirected
to
> > the login page.
> >
> > **some files are larger than 50MB
> >
> > Thanks
> >
> >
>
> The easiest way is to map all of the files' extensions to the aspnet dll
> in IIS. So go into your web app in IIS and copy the dll setting for .aspx
> to each of the other ones (.exe, pdf, etc.). This will cause requests to
> be passed thru the aspnet process (which will then just serve up the
> file), enabling you to protect them via Forms Authentication.
>
> Note you'll want to test this a little, to make sure of no problems.
> Performance impact should be minimal as well.
>
> --
> Craig Deelsnyder
> Microsoft MVP - ASP/ASP.NET
- Next message: Shiva: "Re: How do I do to underline a character in the property text of Button or Label ? I have to manage the AccessKeys. THANX"
- Previous message: Susil Patro: "Adding a new dataset in Crystal report / CrystalDecisions.CrystalReports.Engine dll error with VS 2003 /"
- In reply to: Craig Deelsnyder: "Re: Download question"
- Next in thread: Chandra Sekhar: "Re: Download question"
- Reply: Chandra Sekhar: "Re: Download question"
- Messages sorted by: [ date ] [ thread ]