使用表单按钮防垃圾邮件地址
我一直在研究一些防垃圾邮件方法 这里。我想提出一种更简单的方法:由于我需要几个不同的电子邮件地址,因此我考虑只使用带有 JS 或服务器端重定向的选择框,如示例 在这里。 因为谷歌不会蜘蛛形式(dixit Matt Cutts),而且垃圾邮件收集器脚本也不会(我认为???),这样做是有意义的。
我希望能够在不使用脚本的情况下完成此操作。那么为什么不每封电子邮件使用一张表格呢?
<form action="mailto:[email protected]" method="get">
<input type="submit" value="[email protected]"/>
</form>
按钮文本似乎可以复制但不能粘贴,所以这是一个缺点。
这种方法好不好呢?或任何其他建议?
I have been looking at some methods for spamproof email methods here. I'd like to propose a more simple approach: Since I need a couple of different email addresses I considered just using a selectbox with JS or serverside redirect, as per examples on here.
Because google doesn't spider forms (dixit Matt Cutts), and spam-harvester script don't either (I think????) this would make sense to do.
I would love to be able to do this without using a script. So why not use one form per email?
<form action="mailto:[email protected]" method="get">
<input type="submit" value="[email protected]"/>
</form>
It seems the button text can be copied but not pasted, so that's a disadvantage.
Is this approach any good? or any other recommendations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
因为:
服务器端表单处理程序停止收集电子邮件地址的原因是因为电子邮件地址未向用户公开。
Because:
The reason server side form handlers stop email addresses being harvested is because the email address is not exposed to the user.
机器人使用页面文本来获取电子邮件。它不关心该文本是在按钮中还是在正文中,因此使用按钮没有帮助。
除了使用 javascript 之外,我所知道的唯一解决方案是编写文本、图像或 Flash。
使用您的电子邮件创建图像或写出电子邮件,例如:“在域 dot tld 进行测试”
Flash 可以为您提供一种更安全(但不是 100%)的方式,允许人们点击电子邮件,但不适用于 iPhone 浏览器以及那些没有插件的。
另一种方法是在 PHP 代码中显示电子邮件之前使用简单的验证码。
电子邮件:(1+2 = ?) 然后[电子邮件受保护]
A robot uses the text of the page to get the email. It does not care if that text is in a button or within the body so using a button will not help.
Outside of using javascript, the only solution I know of would be written text, an image or Flash.
Create an image with your email or write out the email like: "test at domain dot tld"
Flash could provide you with a more secure (but not 100%) way of allowing people to click on an email but would not work on iPhone browsers and those that do not have the plug-in.
Another way is to use a simple captcha to before displaying the email in the PHP code.
Email: (1+2 = ?) then [email protected]