Re: How to prevent download
- From: "Hans Kesting" <news.2.hansdk@xxxxxxxxxxxxxxx>
- Date: Tue, 6 Sep 2005 13:07:45 +0200
Shahid Saleem wrote:
> Dear Members
>
> I have an asp.net application , we are selling certein articles on net
> (saved in pdf files) files are located in a folder on server, only the
> authenticated user are allowed to downlod the file (A link in the
> member area), Problem is when a user download a file he get the
> static link and later he can use this link in download accleator to
> directly download the file. how can we prevent such downloads , any
> help.
>
> Best Regards
> Shahid Saleem
>
> *** Sent via Developersdex http://www.developersdex.com ***
Store the files outside of the website, have an "upload.aspx" with parameters
to identify the file that should be uploaded, perform any permission checks
you want, and use Response.WriteFile to send the file to the user.
Hans Kesting
.
- References:
- How to prevent download
- From: Shahid Saleem
- How to prevent download
- Prev by Date: How to prevent download
- Next by Date: Re: TRICK: methods in ASPX pages with <%%> code blocks
- Previous by thread: How to prevent download
- Next by thread: Re: How to prevent download
- Index(es):
Relevant Pages
|