Hi.
I'm restricting access to my webpage with forms authentication, but I have some .htm files that I want to restrict as well (by default, ASP.NET does not restrict this, so anyone with access to the URL could open them).
I've run across a number of solutions on the web, none however seem to work for me. It's possible I'm just missing something stupid and obvious. (I hope that's it.)
First, this page advised me to add a setting to IIS to make aspnet_asapi.dl l handle the .htm files. However, the result was less that satisfactory. In Firefox (2.0.0.x) the page would simply be blank, and IE (6&7) would give the "Internet Explorer cannot display the webpage" message.
Then this page and this page suggested adding httpHandler entries into my web.config file.
These settings did nothing to filter these files.
Then, with ever increasing desperation I tried them both at the same time, and again I got the blank Firefox and the taunting IE message.
Can anyone help me figure out what I'm missing here?
I'm restricting access to my webpage with forms authentication, but I have some .htm files that I want to restrict as well (by default, ASP.NET does not restrict this, so anyone with access to the URL could open them).
I've run across a number of solutions on the web, none however seem to work for me. It's possible I'm just missing something stupid and obvious. (I hope that's it.)
First, this page advised me to add a setting to IIS to make aspnet_asapi.dl l handle the .htm files. However, the result was less that satisfactory. In Firefox (2.0.0.x) the page would simply be blank, and IE (6&7) would give the "Internet Explorer cannot display the webpage" message.
Then this page and this page suggested adding httpHandler entries into my web.config file.
These settings did nothing to filter these files.
Then, with ever increasing desperation I tried them both at the same time, and again I got the blank Firefox and the taunting IE message.
Can anyone help me figure out what I'm missing here?
Comment