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. Advertisements

  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. Advertisements

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. Jeff Fink

    Question about dotnet server security

    Jeff Fink, Oct 29, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    502
    Jeff Fink
    Nov 6, 2003
  2. Aaron
    Replies:
    1
    Views:
    531
    John C. Bollinger
    Aug 4, 2003
  3. Marco
    Replies:
    1
    Views:
    2,662
    Roedy Green
    Jan 28, 2006
  4. Akram Baig
    Replies:
    0
    Views:
    506
    Akram Baig
    Apr 7, 2011
  5. Dinis Cruz

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

    Dinis Cruz, Oct 8, 2003, in forum: ASP .Net Security
    Replies:
    2
    Views:
    330
    Dinis Cruz
    Oct 11, 2003
  6. Michael Randrup
    Replies:
    3
    Views:
    512
    Henning Krause [MVP]
    Mar 27, 2006
  7. Leyla
    Replies:
    2
    Views:
    1,035
    Leyla
    Aug 17, 2006
  8. Kursat
    Replies:
    1
    Views:
    493
    Dominick Baier
    May 7, 2007
Loading...