通过隐藏电子邮件地址来对抗垃圾邮件发送者(显示:无) [英] Combat spambots by hiding email address (display: none)

查看:130
本文介绍了通过隐藏电子邮件地址来对抗垃圾邮件发送者(显示:无)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将其设置为display: none,是否可以防止垃圾邮件抓取程序遍及我的电子邮件地址?如果您愿意,我有个小游戏的想法,用户单击电子邮件的链接,然后显示一个或两个您确定您不是机器人"的问题.回答完这些问题后,它将显示真实链接.

Is it possible to prevent spambots from crawling all over my email address if I set it display: none? I had an idea for a little minigame if you will, where the user clicks the link for the email and it then displays one or two "are you sure you're not a bot" sort of questions. Once these have been answered, it then displayed the real link.

问题是我假设机器人可以看到该链接,因为即使该链接不可见,它也显然存在于HTML中.有办法解决吗?

The issue is I'm assuming that bots can see the link because it's obviously there in the HTML even if it's not visible. Is there a way around this?

此外,我希望这些问题消失,但是据我了解,CSS3过渡不支持显示或可见性属性.我必须求助于jQuery吗?如果是这样,当从display: none切换到display: block时,有人能指导我替代衰落元素吗?

Also, I would want these questions to fade in, but as I understand it the CSS3 transitions don't support the display or visibility properties. Would I have to resort to jQuery? If so, could anyone direct me to alternative to fading in elements when switching from display: none to display: block?

推荐答案

您可能不希望显示电子邮件地址,而是希望实现联系表格.您可以使用验证码或蜜罐方法来保护该表单.另外,您可以使用Javascript渲染表单,因为许多机器人都不会运行Javascript(我希望如此).

Instead of showing the e-mail address, you may want to implement a contact form. You can protect that form with a captcha or some honeypot approach. Also, you may render the form using Javascript, since many bots won't run Javascript (I hope).

这篇关于通过隐藏电子邮件地址来对抗垃圾邮件发送者(显示:无)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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