Col*_*tes 6 c# asp.net ssl
如何确保我的用户无法在物理上键入http:绕过我的SSL并确保每个页面都是https:?
可能是我母版页上的重定向?
Jos*_*ola 9
这通常通过IIS配置或ISAPI过滤器来处理,但是如果你想在应用程序代码中执行它,你可以在主页的Page_Init事件中添加这样的东西......
If Not Request.IsSecure Response.Redirect(Request.Url.AbsoluteUri.Replace("http://", "https://")) End If
归档时间:
17 年,4 月 前
查看次数:
1501 次
最近记录:
16 年,4 月 前