Re: secure pdf files

From: Paul Ingles (paul_at_oobaloo-dot-co-dot-uk)
Date: 04/26/03


Date: Sat, 26 Apr 2003 01:21:09 +0100


There's an article on CodeProject that covers writing an HTTP Handler,
implementing similar support as that of Apache's mod_rewrite:

http://www.codeproject.com/aspnet/urlrewriter.asp

You might be able to write some rules that would hide the location.

Alternatively, you could also consider writing a custom handler (ashx) that
would effectively stream the file to the browser through the response's
stream. For example, if you store the location of the pdf in a DB somewhere,
you can then query the location in the page (based on a GUID passed on the
query string) and stream the file directly from the disk. Just make sure
that it's not possible for unauthorised users to add file locations into the
DB.

"Nad Cyrus" <anonymous@devdex.com> wrote in message
news:uAVFUtmCDHA.3040@TK2MSFTNGP11.phx.gbl...
> Thanks.
>
> However, my concern lies mainly with url links to pdf.
> I'll want to have a page that has a list of links to pdf
> statments for current logged in client.
>
> It is these url's that are teh prob.
> e.g. http://www.mydomain.com/pdfs/client123/2002q1.pdf
> i dont want to have viewer see this url or be able to determine it.
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: BinaryWriter (or streams) slow performance
    ... Who says you're the only one writing to that stream? ... The stream has the Position right. ... and then seeking back up to fill in the block size which it ... writer buffer, it could seek back to it, modify it in memory, and there's ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Binary serialization
    ... DATA members from the class in question the method of writing each ... the base class where you collect the data in to a byte array which is ... then written to the stream by the base class. ...
    (microsoft.public.dotnet.general)
  • Re: long line truncated on vista 2048
    ... What is the exact content of the file you're writing? ... closing the stream? ... It's just one long line at this point in the data file, ... its one of many shorter lines. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Progress maximum value on XML serialisation
    ... which delegates calls to an underlying stream. ... The facade would convey how many bytes were written to the underlying stream ... I need to show the user the progress of writing to file using progress ... My doubt is how to set the value for progress bar, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: older standard drafts for download?
    ... bright idea of writing a project-wide information-sharing system (where you ... were doing a lot of Portable Document Format stuff for their PhD, ... nobody consulted the existing .pdf users; ... My suggested fix was to install Linux, of course, but since (for some ...
    (comp.lang.c)