Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Accessing htm files without authentication (forms authentication)

Reply
Thread Tools

Accessing htm files without authentication (forms authentication)

 
 
Kamil P
Guest
Posts: n/a
 
      11-10-2004
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


 
Reply With Quote
 
 
 
 
Jim Cheshire [MSFT]
Guest
Posts: n/a
 
      11-10-2004
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
http://www.velocityreviews.com/forums/(E-Mail Removed)

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: (E-Mail Removed)@netbase.com.pl
| Message-ID: <cmsq0r$lck$(E-Mail Removed)>
| 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: (E-Mail Removed)
| 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
|
|
|

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rename *-ch03.htm to ch03-*.htm? robertchen117@gmail.com Perl Misc 6 02-06-2007 08:59 AM
Authentication of requests to *.htm resources via FormsAuthentication Sergey V ASP .Net 8 07-18-2006 04:30 PM
Forms Authentication stopped working for .htm/.doc extensions in 2 =?Utf-8?B?SmF5IEJhbGFwYQ==?= ASP .Net 3 07-05-2006 07:44 PM
Forms Authentication stopped working for .htm/.doc extensions in 2.0!! Jay Balapa ASP .Net 0 01-10-2006 04:49 PM
Forms Authentication stopped working for 2.0 for .htm/.doc/.xls files Jay Balapa ASP .Net Security 0 01-09-2006 08:55 PM



Advertisments