我怎样才能限制远程访问ELMAH? [英] How can I restrict remote access to Elmah?
本文介绍了我怎样才能限制远程访问ELMAH?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过安装ELMAH我们开发的Web服务器。我们可以限制谁远程访问它?即使F c的用户名/密码,我们很难$ C $(哈希?),或者仅通过IP是什么呢?
With Elmah installed on our dev web server .. can we restrict who remotely accesses it? Even f we hardcode the username/passwords (hashed?) or is it only via IP?
推荐答案
有两种设定,一种是在< ELMAH>
:
There are two settings, one is in <elmah>
:
<elmah>
<security allowRemoteAccess="1"/>
</elmah>
另外就是,如果您允许远程访问,您可以使用&LT;地点&gt;
来控制谁访问它:
<location path="elmah.axd">
<system.web>
<authorization>
<allow roles="Administrator"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
您可以只后,你把这个主web.config中&LT; /运行&GT;
标记
You can put this in the main web.config just after you </runtime>
tag
这篇关于我怎样才能限制远程访问ELMAH?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文