Ask a Question related to ASP.NET Security, Design and Development.
-
Eric Newton #1
Re: 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 and simply spits it out verbatim, and since the ASPX page runs under
the Authentication routines, it would properly restrict access.
HTH
--
Eric Newton
[email]eric@ensoft-software.com[/email]
C#/ASP.net Solutions developer
"John Virgolino" <jvirgolino@consulvation.com> wrote in message
news:%23wDuFM5XDHA.2476@tk2msftngp13.phx.gbl...ASPX> Is it possible to protect access to "regular" HTML files mixed in withto> files. After implementing forms authentication, I was able to get rightI> an HTML page without any problems (not what I want). I then renamed it to
> an ASPX file and it redirected to the login page (what I do want).
>
> I assume this is because there is no "intelligence" behind HTML. However,portions> would like to use the built-in authentication capability for all types of
> pages. Any suggestions or am I missing something? I have included/>> of web.config below.
>
> Thanks,
> John Virgolino
>
> <location path="app">
>
> <system.web>
>
> <authorization>
>
> <deny users="?" />
>
> </authorization>
>
> </system.web>
>
> </location>
>
>
>
> <authentication mode="Forms">
>
> <forms name=".myauth" loginUrl="login.aspx" protection="All" path="/">
> </authentication>
>
> <authorization>
>
> <deny users="?" />
>
> </authorization>
>
>
Eric Newton Guest
-
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... -
forms authentication doesn't work for static pages/files like GIF/HTML/PDF ?
do I understand it correctly that forms authentication doesn't work for static pages/files like GIF/HTML/PDF ? so I cannot convince IIS to... -
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... -
Forms authentication and downloading files
How can I use Forms Authentication to give clients access to download specific exe files? Thanks. -- Michael Tissington... -
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....



Reply With Quote

