Security Question

Discussion in 'ASP General' started by Robert Suffecool, Dec 28, 2003.

  1. Hi everyone,

    I would like to restrict access to certain PDF files on my webserver.
    How can they be protected if they are in a "public" directory? For example,
    lets assume you have your html and asp pages for http://www.xyz.com saved on
    the server's hdd @ c:\xyz.com\htdocs. If you place thefile.pdf in that
    directory, then all the "unauthorized" person would need to know is the pdf
    file url, i.e., http://www.xyz.com/thefile.pdf.

    Assume I place the pdf file in the following directory on the server...
    c:\xyz.com\pdfs. Is there a way in ASP that I can allow certain visitors to
    view that file? Remember, the asp file would be located on at
    c:\xyz.com\htdocs.

    Any thoughts and/or suggestions would be greatly appreciated! Oh, by
    the way... the server is IIS5 running on Windows 2000 Advanced Server.

    God Bless,

    Robert
     
    Robert Suffecool, Dec 28, 2003
    #1
    1. Advertising

  2. Robert Suffecool

    Bullschmidt Guest

    If your Web host allows it I'd suggest password protecting the folder
    that contains the .pdf files.

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    http://www.Bullschmidt.com
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Bullschmidt, Dec 30, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Aaron
    Replies:
    1
    Views:
    352
    John C. Bollinger
    Aug 4, 2003
  2. Marco
    Replies:
    1
    Views:
    2,418
    Roedy Green
    Jan 28, 2006
  3. Akram Baig
    Replies:
    0
    Views:
    332
    Akram Baig
    Apr 7, 2011
  4. Dinis Cruz

    Asp.Net Security Analyser (new security tool by DDPlus)

    Dinis Cruz, Oct 8, 2003, in forum: ASP .Net Security
    Replies:
    2
    Views:
    150
    Dinis Cruz
    Oct 11, 2003
  5. Michael Randrup
    Replies:
    3
    Views:
    306
    Henning Krause [MVP]
    Mar 27, 2006
Loading...

Share This Page