Re: How to prevent download

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: Trouble with uploading links to host
    ... Go back to the site and download from the first page ... files are pretty big pdf files, but at least it is recognizing the command ... your pdf files to your website, and write the link to where you upload ... Most of us find that having a separate folder for downloads on our ...
    (microsoft.public.publisher.webdesign)
  • Re: Corrupt pdf files with zero KB
    ... I seem to be getting corrupt pdf files. ... The most common would be that your web browser requests the ... terminating the download before the remote server responds. ...
    (comp.sys.mac.apps)
  • Re: Trouble with uploading links to host
    ... Go back to the site and download from the first page ... files are pretty big pdf files, but at least it is recognizing the command ... your pdf files to your website, and write the link to where you upload ... Most of us find that having a separate folder for downloads on our ...
    (microsoft.public.publisher.webdesign)
  • Re: Websites which insist upon Adobe Acrobat
    ... download PDF files to you because you don't have Adobe Acrobat ... Fortunately I almost never notice such things, since Javascript is ...
    (Debian-User)
  • Red "x" In A White Square Instead of JPG Images
    ... (Below the image it states for members only.) ... of that site, you can click on the image, which will enlarge it so you can ... download the pictures. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)