登录后如何在网站上进行URL加密? [英] How to make URL encryption in website after login ?

查看:124
本文介绍了登录后如何在网站上进行URL加密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


使用用户名和密码以简单的方式登录后,我们可以使用默认的URL.
任何人都可以使用此URL登录并访问配置文件,以及如何进行安全登录.
我已经搜索了QueryString,但是我发现它一直都不太安全.
如果只有QueryString是加密的唯一方法,那么如何有效地使用它呢?

因为我们可以通过从浏览器中删除Cookie来使用会话变量进行登录.
如何在C#中使用Base64方法或任何其他有用的加密方法来确保配置文件的安全.因此,如果我们将URL复制并粘贴到任何浏览器用户的个人资料中,则该时间将无法访问.
预先感谢.

Hi,
After login with username and password in simple way we can have default URL.
Using this URL any one can login and access the profile so how to make secure login.
I have search for QueryString but I found it is not much secure for all the time.
If only QueryString is the only way for encryption then how to use it in effective way?

As we can do login using session variable by removing cookies from the browser.
How to use Base64 method or any other useful encryption method in C# for security of the profile. So if we copy and paste the URL in any browser user''s profile should not be access at that time.
Thanks in advance.

推荐答案

亲爱的赫蒂什,

对于上述问题,您需要具有URL重写功能,这肯定会帮助您.

这些链接将帮助您:-

使用ASP.NET进行URL重写 [ http://www.asp.net/web-forms/tutorials/security/introduction/security-basics-and-asp-net-support-vb [ http://www.asp.net/web-表单/教程/安全性/简介/an-overview-of-forms-authentication-vb [
Dear Hitesh,

For the above problem you need to have the functionality of URL Rewriting that will definitely help you out.

these links will help you out:-

URL Rewriting with ASP.NET[^]

http://www.asp.net/web-forms/tutorials/security/introduction/security-basics-and-asp-net-support-vb[^]

http://www.asp.net/web-forms/tutorials/security/introduction/an-overview-of-forms-authentication-vb[^]

Thanks

Varun Sareen


这篇关于登录后如何在网站上进行URL加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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