您可以在.NET应用程序SSL一页? [英] Can you SSL one page in an a .NET application?

查看:123
本文介绍了您可以在.NET应用程序SSL一页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以有一个网页在.NET应用程序为https,但其余的是http?例如,刚刚登录页面?这是否采取额外的安装应用程序,或只是简单为IIS设置?

Can you have one page in a .NET application that is https but the rest be http? For instance, just the login page? Does this take extra setup in the application or is it just as simple as an IIS setting?

推荐答案

当然可以。我推荐这款免费开源的DLL,它允许您指定的网页和文件夹需要SSL,哪些没有:

Yes you can. I recommend this free open source DLL that lets you designate which pages and folders need SSL and which don't:

<一个href="http://www.$c$cproject.com/KB/web-security/WebPageSecurity%5Fv2.aspx">http://www.$c$cproject.com/KB/web-security/WebPageSecurity_v2.aspx

所以,你可以设置一个网页是安全的在你的web.config是这样的:

So you can setup a page to be secure in your web.config like this:

<secureWebPages encryptedUri="www.example.com" unencryptedUri="www.example.com" mode="RemoteOnly" >
    <files>
      <add path="/MustBeSecure.aspx" secure="Secure" />
    </files>
</secureWebPages>

这篇关于您可以在.NET应用程序SSL一页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆