jQuery 更安全的形式

发布于 2024-10-07 08:41:45 字数 348 浏览 0 评论 0原文

我正在为一个网站设计一个注册表单,最初打算在其上添加验证码以防止垃圾邮件发送者远程向其发布信息。但后来我发现这篇关于使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏の忆 2024-10-14 08:41:45

大多数机器人都非常原始,不会重新创建浏览器环境 - 它们只会解析 HTML。

Most bots are quite primitive and don't recreate a browser's environment - they will just parse the HTML.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文