Re: secure pdf files
From: Cy Huckaba (cyh_at_delete.t-3.com)
Date: 04/30/03
- Next message: Halcyon Woodward: "Passing authentication credentials from portal to application using IIS 6"
- Previous message: Cy Huckaba: "Re: Formsauthentication - Page_Load problem"
- In reply to: Nad Cyrus: "secure pdf files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 29 Apr 2003 17:10:42 -0500
I had a similar issue with basically all files that weren't aspx files. I wasn't
as concerned with users being able to see the URLs (in the status bar, view
source or whatever though).
I went into IIS and added a filetype handler for the files that I wanted to
protect (i.e. gif, jpg, pdf, etc) and pointed the handler to the .Net Framework
aspnet_isapi.dll that all of the other .net pages are handled by. Use the others
(aspx, ashx) to find the correct location of the dll you should point to.
Works like a charm now, all my files are protected for that project. Took me 5
minutes...
Cy Huckaba
"Nad Cyrus" <anonymous@devdex.com> wrote in message
news:eoCjzzhCDHA.28568@TK2MSFTNGP10.phx.gbl...
> I am writing a banking application and have a number of client
> statements in pdf flat file format.
>
> I need to be able to serve up these statements to client when they login
> and are authenticated against a sql db.
>
> My problem is that I dont want to disclse the url of teh pdf to user, so
> they can try to guess the location of another client. I also don't want
> to use windows security and set up an account for each client. I simply
> want to be able to store pdf files in a directory accessible by web
> server (IIS) and when a client clicks on their link, pdf is presented to
> them but they don't know where file came from.
>
> Any ideas??
> Thanks in advance.
> Nad
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
- Next message: Halcyon Woodward: "Passing authentication credentials from portal to application using IIS 6"
- Previous message: Cy Huckaba: "Re: Formsauthentication - Page_Load problem"
- In reply to: Nad Cyrus: "secure pdf files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|