Re: Deny access to a directory with web.config

From: Brock Allen (ballen_at_NOSPAMdevelop.com)
Date: 04/26/05

  • Next message: Mark A. Richman: "EventLogPermission via caspol.exe"
    Date: Tue, 26 Apr 2005 14:25:30 -0700
    
    

    You can move the directory outside of the web application's directory.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen

    > Hello,
    > I'm working on a portal based on IBuySpy, where the main page is
    > desktopdefault.aspx and all content is stored in
    > www.domain.com/content/html/nnn
    > or
    > www.domain.com/content/images/nnn
    > and injected in the desktopdefault.aspx page.
    > How can I prevent users doing www.domain.com/content/images/test.jpg
    > and getting the image (or the html file, or whatever inside the
    > content directory?)
    > It doesn't matter if the user is authenticated or not, I just want
    > obly the webapplication to be able to load and display the files
    > inside the /content directory.
    > Can I do this just manipulating the web.config, without changing
    > directory permissions on the webserver?
    >
    > Thanks!
    >


  • Next message: Mark A. Richman: "EventLogPermission via caspol.exe"

    Relevant Pages

    • Deny access to a directory with web.config
      ... I'm working on a portal based on IBuySpy, ... and getting the image (or the html file, ... Can I do this just manipulating the web.config, ... directory permissions on the webserver? ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: forcing ie to save the contents of the html instead of displaying it
      ... >I have an html file where I display name,address,zip. ... I know I can set it up as a txt file and let them download it ... to do this if *they* want it to without any special work on your part? ...
      (comp.infosystems.www.authoring.html)
    • Re: ASP.Net Page that has a control to display HTML
      ... It turns out that loading the page into my application was fine. ... >The failure to display the HTML, I believe it has something to do with the data ... Using this yahoo.htm file instead of the simple html file, ... >>correct information ...
      (microsoft.public.dotnet.framework.aspnet)
    • forcing ie to save the contents of the html instead of displaying it
      ... I have an html file where I display name,address,zip. ... But I would like ie6 to force the download prompt of this long list of names ...
      (comp.infosystems.www.authoring.html)
    • Re: CDHtmlDialog fail to load image in Vista
      ... If I take the same HTML file and display it with: ... is coming from the resource, and it is referencing an external .gif file, ... Or else do what I did and load the HTML file and the image ...
      (microsoft.public.vc.mfc)