将用户名和密码传递给网址和自动登录网站 [英] To pass username and password to url and autologin to website

查看:94
本文介绍了将用户名和密码传递给网址和自动登录网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站的网址和密码以及网站的用户名。我想通过我的另一个asp.net网站登录该网站。请帮助我。

提前致谢



我尝试了什么:



我尝试了一些javascripts但没有工作

I have a website's url and password and username of website.I want to login to that website through my another asp.net website.Please help me.
Thanks in advance

What I have tried:

I have tried some javascripts but didnt work

推荐答案

没有通用方式可以确保它可以工作,当然也没有安全的方法。某些站点允许您通过附加到URL的查询字符串传递登录详细信息,但这通常是不安全的,因为登录详细信息实际上是公开的。

其他要求您有效cookie集,或通过登录表单。



您必须检查您想要访问的各个网站,并对每个网站进行适当的处​​理 - 我们不能告诉你这样做它会起作用,因为没有任何解决方案可以保证适用于任何两个站点,更不用说所有站点了。请注意,除非您完全控制您正在访问的网站,否则它可能随时会发生变化 - 许多更安全的网站会故意更改登录表单和程序以防止自动登录。
There is no "generic" way that will ensure it will work, and certainly no secure way. Some site will allow you to pass the login details via a query string attached to the URL, but this is generally insecure in the extreme since the login details are effectively public.
Others require you to have a valid cookie set, or to go via a login form.

You will have to examine the individual web site(s) that you want to access, and treat each appropriately - we can't tell you "do this and it'll work" because there is no solution which is guaranteed to work for any two sites, much less all sites. And be aware that unless you have full control of the site you are accessing, it may be subject to change at any time - many of the more secure sites deliberately change login forms and procedures to prevent automated logins.

这篇关于将用户名和密码传递给网址和自动登录网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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