浏览器如何识别登录表单? [英] How browser's identify login forms?

查看:143
本文介绍了浏览器如何识别登录表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出:浏览器如何识别不同站点中的登录表单?

I'm trying to find out: how browsers identify login forms in different sites?

我访问我的GMail帐户或某些个人项目都没关系,IE/Firefox始终知道该页面包含登录信息.

Doesn't matter if I'm acessing my GMail account or some personal project, IE/Firefox always knows that that page contains login info.

他们是否得出结论,简单地搜索输入类型=密码还是涉及一些cookie信息?

Do they conclude that simply searching for input types = password or there is some cookie information involved?

谢谢.

Filipe

推荐答案

他们不仅会寻找type = password,还将寻找用户名和密码的通用输入名称.

No only do they look for type=password they will also look for common input names for usernames and passwords.

例如,大多数浏览器将检测以下字段名称作为登录信息.

For example most browsers will detect the following field names as login information.

<input name="login" type=text>
<input name="user" type=text>
<input name="username" type=text>
<input name="passwd" type="password">
<input name="pass" type="password">
<input name="password" type="password">

这篇关于浏览器如何识别登录表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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