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

时间:2024-07-27 15:03:32

<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>