Accessing htm files without authentication (forms authentication)

Discussion in 'ASP .Net Security' started by Kamil P, Nov 10, 2004.

  1. Kamil P

    Kamil P Guest

    I have application with forms authentication. All works fine. When user
    opens .aspx file gets login form, login and then get the .aspx page.
    But there is one problem. I have also .htm files. All that files user can
    get without login form.
    How to set application or serwer permissions to .htm files that its need
    authentication like .aspx (redirecting to login page)?

    Kamil
     
    Kamil P, Nov 10, 2004
    #1
    1. Advertising

  2. Hi Kamil,

    There is only one way to do that. You have to map the .htm file extension
    to the aspnet_isapi.dll in IIS.

    Jim Cheshire [MSFT]
    MCP+I, MCSE, MCSD, MCDBA
    ASP.NET Developer Support


    This post is provided "AS-IS" with no warranties and confers no rights.


    --------------------
    | From: "Kamil P" <fuzel1@wp_remit.pl>
    | Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    | Subject: Accessing htm files without authentication (forms authentication)
    | Date: Wed, 10 Nov 2004 11:20:31 +0100
    | Organization: news.onet.pl
    | Lines: 10
    | Sender: @netbase.com.pl
    | Message-ID: <cmsq0r$lck$>
    | NNTP-Posting-Host: netbase.com.pl
    | X-Trace: news.onet.pl 1100082011 21908 80.55.62.134 (10 Nov 2004 10:20:11
    GMT)
    | X-Complaints-To:
    | NNTP-Posting-Date: 10 Nov 2004 10:20:11 GMT
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
    | Path:
    cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
    ul.t-online.de!t-online.de!newshub.sdsu.edu!logbridge.uoregon.edu!arclight.u
    oregon.edu!enews.sgi.com!news.nask.pl!newsfeed.tpinternet.pl!news.onet.pl!no
    t-for-mail
    | Xref: cpmsftngxa10.phx.gbl
    microsoft.public.dotnet.framework.aspnet.security:12213
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    |
    | I have application with forms authentication. All works fine. When user
    | opens .aspx file gets login form, login and then get the .aspx page.
    | But there is one problem. I have also .htm files. All that files user can
    | get without login form.
    | How to set application or serwer permissions to .htm files that its need
    | authentication like .aspx (redirecting to login page)?
    |
    | Kamil
    |
    |
    |
     
    Jim Cheshire [MSFT], Nov 10, 2004
    #2
    1. Advertising

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. Jay Balapa
    Replies:
    0
    Views:
    399
    Jay Balapa
    Jan 10, 2006
  2. =?Utf-8?B?SmF5IEJhbGFwYQ==?=

    Forms Authentication stopped working for .htm/.doc extensions in 2

    =?Utf-8?B?SmF5IEJhbGFwYQ==?=, Jan 10, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    388
  3. Jay Balapa
    Replies:
    0
    Views:
    156
    Jay Balapa
    Jan 9, 2006
  4. Eric
    Replies:
    2
    Views:
    607
  5. Replies:
    6
    Views:
    182
    Dr.Ruud
    Feb 6, 2007
Loading...

Share This Page