Accessing htm files without authentication (forms authentication)

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Accessing htm files without authentication (forms authentication)

    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 Guest

  2. Similar Questions and Discussions

    1. ASP.Net Forms authentication with basic authentication popup
      Relatively new to ASP.Net but have a strange problem. My site uses forms authentication for a large administration section however after the user...
    2. Forms authentication then redirection to a secure web with NT authentication?
      Hi, I want to allow access to particular secured intranet web sites. These intranet are stored in sharepoint (2003 version) Actually I've...
    3. Authentication ticket, cookieless, forms authentication?
      Hi. I want to use Forms Authentication, cookieless. The issue is setting the Authentication Ticket without using cookies (!) That is, the...
    4. Forms authentication for HTML files
      You could map HTML files in IIS admin to the aspnet handler, or, a better way, you could utilize a helper ASPX that takes the html file's path...
    5. Excluding certain files from forms authentication
      Hi I have a website which uses forms based authentication. However, I need to exclude a file from authentication so that all users can view it....
  3. #2

    Default RE: Accessing htm files without authentication (forms authentication)

    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
    [email]jamesche@online.microsoft.com[/email]

    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: [email]fuzel1@poczta.onet.pl@netbase.com.pl[/email]
    | Message-ID: <cmsq0r$lck$1@news.onet.pl>
    | 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: [email]abuse@onet.pl[/email]
    | 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!TK2MSFT NGP08.phx.gbl!newsfeed00.s
    ul.t-online.de!t-online.de!newshub.sdsu.edu!logbridge.uoregon.edu!a rclight.u
    oregon.edu!enews.sgi.com!news.nask.pl!newsfeed.tpi nternet.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] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139