激活在IIS7 CSV文件的形式认证 [英] Activate form authentication for CSV files in IIS7

查看:296
本文介绍了激活在IIS7 CSV文件的形式认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有IIS 7网站该网站设有一个带的AuthorizeRequest事件处理一个HTTP模块。
此事件不火CSV文件,并且无需登录,我可以访问该文件,我想这是因为IIS7未配置为要求CSV文件的形式autentication。

I have a website on IIS 7. This website has a HttpModule with an AuthorizeRequest event handler. This event does not fire for CSV files and I can access the file without logging in, I guess this is because IIS7 is not configured to require form autentication for CSV files.

如何设置呢?

推荐答案

这<一个href=\"http://stackoverflow.com/questions/1644546/how-to-protect-static-content-on-iis7-in-classic-mode/1665913#1665913\">answer解释如何才达到我所期待的。
我插在Web.config文件中所引用的指南第3章和4线等
改变的热媒与<​​/ em>的.CSV,也许有人可以优化* .csv文件导入解决方案。但对我来说不会是我所需要的。

this answer explains how to achive what I was looking for. I inserted in web.config the lines in chapter 3 and 4 of the referenced guide, and changed ".htm" with ".csv", maybe someone can optimize the solution for *.csv files. but for me it does what I needed.

这篇关于激活在IIS7 CSV文件的形式认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆