Re: Deny access to a directory with web.config

From: Juan T. Llibre (nomailreplies_at_nowhere.com)
Date: 04/27/05

  • Next message: vinay: "LDAP"
    Date: Wed, 27 Apr 2005 11:50:32 -0400
    
    

    I think that adding the specific file types to the files managed
    by ASP.NET will turn the trick if you implement forms-based
    authentication to the directory.

    Juan T. Llibre
    ASP.NET MVP
    http://asp.net.do/foros/
    Foros de ASP.NET en Espaņol
    Ven, y hablemos de ASP.NET...
    ======================

    "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
    news:564311632501908156760592@msnews.microsoft.com...
    >> Good suggestion, but is there a way to control access to that
    >> directory with the web.config?
    >
    > Not if IIS is serving up the files, as the request never makes it to ASP.NET.
    >
    > -Brock
    > DevelopMentor
    > http://staff.develop.com/ballen
    >
    >
    >


  • Next message: vinay: "LDAP"

    Relevant Pages

    • RE: file restriction - Forms authentication
      ... Only those file types that are mapped in IIS to the aspnet_isapi.dll are ... options when it comes to PDF files. ... Map the PDF file type to the aspnet_isapi.dll in IIS. ... and I'm using Forms authentication method. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Access 2003 and 2007
      ... Options - File Types Tab In the Registered file types list box, ... Jac Tremblay wrote: ... Of course, I can change the shortcut path, but it a pain to have to do it ... I thought there was some trick. ...
      (microsoft.public.access.setupconfig)
    • Re: Deny access to htm files
      ... that a request for a .aspx file does. ... Because Forms Authentication is a .NET feature, ... You'll see a list of Application extensions, with mappings to specific ... for certain file types as well. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Restrict access to resources like .doc, .ppt etc in .net forms authentication application
      ... In IIS you can associate these file types with ASP.NET so they will be ... > We are developing a .NET app which has forms authentication. ... > user types in the direct URL of an aspx page on the browser, ... > be thrown to the login page. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: MT-NW and mail
      ... 'automatic' to 'password' did the trick. ... Barry Margolin wrote: ... Carl Witthoft wrote: ... and what kind of authentication do you have ...
      (comp.sys.mac.apps)