Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

NTFS and Web permissions on iis 6

  • 20-09-2006 8:40pm
    #1
    Registered Users, Registered Users 2 Posts: 732 ✭✭✭


    I am currently working on a document server and am having problems with permissions on directories.
    I want to be able to display pdf documents within my web pages, but stop people from browsing directly to them, what permissions do i have to set to do this.

    thanks for any help.


Comments

  • Registered Users, Registered Users 2 Posts: 3,280 ✭✭✭regi


    The thing to look for is 'Directory browsing' - just turn that off perhaps?

    DirectoryBrowsing1.gif


  • Registered Users, Registered Users 2 Posts: 732 ✭✭✭chalky


    thanks, but I've already tried that, but its still possible to open the PDF document if you have the full url.


  • Registered Users, Registered Users 2 Posts: 3,280 ✭✭✭regi


    Ok, I misunderstood by what you meant by displaying them. Unless you feed the user byte-by-byte the PDF with the correct mimetype set, you'll probably need to allow the users to view and thus download them.

    How do you mean for users to view the PDFs?


  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    chalky wrote:
    thanks, but I've already tried that, but its still possible to open the PDF document if you have the full url.

    As regi says, to avoid users finding out where the document is, you'd have to write a script which feeds the document to them byte-by-byte. That's not overly difficult, but a little pointless unless you really don't want them to be able to call up the documents directly.


  • Registered Users, Registered Users 2 Posts: 7,314 ✭✭✭Nietzschean


    to avoid direct linkage the simplest thing can be to just put in a htaccess file which requires the referrer to be from the same domain. Its easily beatable by someone who know's what they are doing, but for the OP's purposes i'd say it'd do nicely

    Though this being IIS and not apache i imagine some sort of ISAPI filter can probally achieve the same effect...


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 640 ✭✭✭Kernel32


    If it's IIS and .Net then a HttpHandler will do what you need.


  • Registered Users, Registered Users 2 Posts: 732 ✭✭✭chalky


    Thanks all.
    I wrote the script to feed the document byte by byte. It seems to work well. Thanks for all the help.


Advertisement