禁止盗链,强制回登录页面web.config配置

<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" requestValidationMode="2.0"/>
<authorization>
<deny users="?"/>
</authorization>
<authentication mode="Forms">
<forms name="venusoft.teacherGrowup" loginUrl="~/Login/Login.aspx" slidingExpiration="true"/>
</authentication>
</system.web>

posted on 2016-03-13 15:33  吴翰哲  阅读(323)  评论(0编辑  收藏  举报

导航