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

Posted 吴翰哲

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了禁止盗链,强制回登录页面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>

以上是关于禁止盗链,强制回登录页面web.config配置的主要内容,如果未能解决你的问题,请参考以下文章

在web.config文件中使用授权时将重定向回登录屏幕

tp5 _initialize控制器初始化 及 禁止未登录进入和重复登入

如何在 PHP 中登录页面后将用户重定向回所需的 URL?

网页中怎样禁止通过输入url直接访问

Asp.Net 单点登录(SSO)|禁止重复登陆|登录强制下线

openwrtssh能登陆管理页面登不了