#1
  1. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jul 2006
    Posts
    1
    Rep Power
    0

    Prevent unauthorized viewing of PDF files


    I have placed PDF files in a protected folder. I have a secure ASP page that I want to open a PDF file. How can I have the ASP page handle the login authentication to the protected folder?
  2. #2
  3. No Profile Picture
    Contributing User
    ASP Mastermind (5000+ posts)

    Join Date
    Aug 2005
    Location
    North East, UK
    Posts
    6,191
    Rep Power
    141
    How is the folder protected?
    How is the ASP page "secure"?
  4. #3
  5. **Wanted Wizard**
    ASP Mastermind (5000+ posts)

    Join Date
    Apr 2006
    Location
    Who knows...
    Posts
    5,410
    Rep Power
    1341
    Originally Posted by degsy
    How is the folder protected?
    How is the ASP page "secure"?
    Set them up with a username and password, that they have to login to view the files.... if they are not logged in, make the asp page redirect to the login page.

    I use something like this to disable unauthorized users... you would have to modify and redirect to your own page, and set it up so it will display in Adobe.

    Code:
    'make sure they are logged in to see this page
      if Request.Cookies("user")("name") = "" then
        Response.cookies("authUrl") = "yourpage.asp"
        loadPage "login.asp"
      end if
    	
    'check password
      if checkDealerPassword() = false then
        Response.cookies("authUrl") = "yourpage.asp"
        loadPage "login.asp"
      end if
  6. #4
  7. Moderator From Beyond
    ASP Mastermind (5000+ posts)

    Join Date
    Sep 2004
    Location
    Israel
    Posts
    31,135
    Rep Power
    2926

Similar Threads

  1. not viewing hidden files - file system object
    By sanctos2003 in forum ASP Development
    Replies: 3
    Last Post: July 7th, 2005, 02:13 PM
  2. Viewing files on your server:
    By jpweber73 in forum ASP Development
    Replies: 4
    Last Post: September 27th, 2004, 05:28 PM
  3. File System Object - viewing the files in a folder
    By dbail in forum ASP Development
    Replies: 1
    Last Post: September 16th, 2003, 09:49 PM
  4. viewing pdf files so slow why?
    By ezze in forum ASP Development
    Replies: 0
    Last Post: July 8th, 2003, 03:24 PM
  5. selecting, downloading, printing and viewing multiple PDF files
    By Steve Schofield in forum ASP Development
    Replies: 0
    Last Post: June 16th, 2000, 03:51 PM

IMN logo majestic logo threadwatch logo seochat tools logo