Re: Securing .htm pages with asp.net

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 10/04/05

  • Next message: Ayyappan Nair: "Re: Windows Integrated authentication"
    Date: Mon, 03 Oct 2005 15:32:11 -0700
    
    

    Hello Guy,

    you have to route the .htm extension to the aspnet_isapi dll, just like .aspx
    and friends...

    you do that in IIS application settings.

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com

    > Hello,
    >
    > I would like to use asp.net to secure a site which includes .htm and
    > .html pages.
    >
    > I've tried using forms authentication, global.asax and HTTP modules.
    > Those approaches work fine for .aspx pages, but they aren't triggered
    > when an .htm or .html page is called.
    >
    > So how do you secure .htm pages with asp.net security? Can IIS be
    > configured so that Global.asax or forms authentication are triggered
    > when .htm pages are requested?
    >
    > Thanks,
    > Jason
    > *** Sent via Developersdex http://www.developersdex.com ***
    >


  • Next message: Ayyappan Nair: "Re: Windows Integrated authentication"

    Relevant Pages

    • Re: IIS 6.0 - Cannot update static HTML pages
      ... Kit (Chapter 7 Web Server Scalability). ... You can get the IIS Res Kit from: ... The application creates static .htm pages ...
      (microsoft.public.inetserver.iis)
    • Re: Https Redirects with IIS?
      ... .HTM is processed as a static file is because of the .ASP ScriptMap. ... by IIS). ...
      (microsoft.public.inetserver.iis)
    • Re: why do .asp files prompt for login but .htm files do not?
      ... Well, for .htm page, IIS just opens that file and sends it back -- so if the ... user credentials are all good, ... For .asp page, it could run code to do other things -- like talk to a DB to ... IIS 5.0 in a domain. ...
      (microsoft.public.inetserver.iis.security)
    • Re: asp page from htm page
      ... If you have access to the script mappings you can map .htm to be processed ... > I do have a number of admin capabilities on the host server via the> control pannel. ... > I'm guessing from you're answer that on the IIS admin application you can> set IIS to recognize ASP code in an htm file...? ... >> Well, for one thing, the information you're looking for is probably in>> the IIS logs - however it IS possible to run ASP code in a file marked ...
      (microsoft.public.inetserver.asp.general)
    • Re: New to ASP.NET and IIS Question
      ... The information about the mapping of IIS works fine ... for telling asp.net to work on .htm files correctly. ... This application that sends Post messages is not using a web form or any ...
      (microsoft.public.dotnet.framework.aspnet)