自动登录到其他网站的PHP脚本 [英] auto login to other sites php script

查看:158
本文介绍了自动登录到其他网站的PHP脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个脚本,通过该脚本我可以在不打开登录页面的情况下登录其他网站。

I want a script by which i can login to other website without opening their login page.

场景是这样的。我不想给别人提供登录ID和密码。
他们只需要点击一个链接或按钮,脚本就可以完成它的工作了。它将传递所需的登录ID和密码并提交登录表单并登录。客户端拥有所有凭证。

The scenario is like this. I do not want to give login id and password to others. They just need to click a link or button and script will do its work. It will pass the required login id and password and submit the login form and it is logged in. And client have all the credential.

推荐答案

我永远不会相信任何要求我输入其他网站的用户名和密码的网站。我怎么知道你不会破解我的帐户?而是使用 OpenID 。这样,您的用户就需要登录到其他站点,并使用令牌为您的站点提供临时访问权限。所有主要的社交网站都支持OpenID或类似网站。

I would never trust any site that requires me to enter my username and password for another site. How do I know you are not going to hack my account? Instead use OpenID. This way your users need to log in to the other site and give your site temporary access using a token. All of the major social networking sites support OpenID or similar.

这篇关于自动登录到其他网站的PHP脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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