jQuery 更安全的形式
我正在为一个网站设计一个注册表单,最初打算在其上添加验证码以防止垃圾邮件发送者远程向其发布信息。但后来我发现这篇关于使用 jQuery 的更安全表单的文章:http://15daysofjquery。 com/safer-contact-forms-without-captchas/11/
我只是想知道这是如何工作的?如果垃圾邮件发送者远程访问表单,JavaScript 是否也会将隐藏字段添加到他的表单中?或者只有当用户在浏览器中加载表单时才会发生这种情况......?
I'm designing a registration form for a website, and was originally going to put a captcha on it to prevent spammers posting information to it remotely. But then I found this article about safer forms using jQuery: http://15daysofjquery.com/safer-contact-forms-without-captchas/11/
I was just wondering how this is working? If a spammer remotely accesses the form, will not the javascript add the hidden field to his form as well? Or will this only happen when the user loads the form in his browser...?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
大多数机器人都非常原始,不会重新创建浏览器环境 - 它们只会解析 HTML。
Most bots are quite primitive and don't recreate a browser's environment - they will just parse the HTML.