可点击的电子邮件链接加密?该怎么做呢?

发布于 2024-10-04 15:09:28 字数 166 浏览 5 评论 0原文

我想知道是否以及如何为网站创建可点击的电子邮件链接,这些网站以电子邮件蜘蛛无法收集它们的方式“加密”,并且生活用户仍然可以点击它在电子邮件中打开-客户甚至复制它。

我看到一些用 javascript 完成的链接,但我不知道他们是如何做到这一点以及它们有多“安全”。

预先感谢您的任何回复

I would like to know if and how it is possible to create a clickable email-link for websites, that are "encrypted" in a way emailspiders can't collect them and it is still possible for living users to click it to open in email-clients or even copy it.

I saw some links that were done in javascript but I on't know how they did this and how "safe" they are.

thank you in advance for any reply

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

乱了心跳 2024-10-11 15:09:28

大多数方法是将地址拆分为多个元素并插入额外的格式;然后对于支持 JS 的浏览器,他们使用 JavaScript 将其转换回电子邮件地址。

海报示例是 SpamSpan,它甚至有几个“级别”的混淆 - 每个级别逐渐越来越少源代码中类似于一封电子邮件,但它仍然设法通过 JS 将其拼凑起来。尽管现在的一些垃圾邮件机器人据说能够执行 JavaScript,但绝大多数都不能,并且电子邮件在关闭 JS 的情况下仍然可以被人类阅读。 JS 辅助反混淆的一个优点是它不依赖于外部服务器,你只需要(简单地)集成 JS 库。

reCAPTCHA Mailhide 采用了另一种方法 - 仅在解决验证码后才会显示电子邮件(与普通 reCAPTCHA 的类型相同)。这对用户来说不太方便,但对于机器人来说实际上是安全的。这样做的缺点是它依赖于 reCAPTCHA 的服务器(本质上是在 Google 上)——有些人坚决反对任何外部依赖。

Most approaches to this are splitting the address across multiple elements and inserting extra formatting; then for JS-enabled browsers, they use JavaScript to turn it back into an e-mail address.

The poster example for this is SpamSpan, which even has several "levels" of obfuscation - each level progressively less and less resembles an e-mail in the source code, yet it still manages to piece it back together by JS. Although some spambots today are supposedly capable of executing JavaScript, te vast majority doesn't - and the e-mails are still human-readable with JS off. An advantage of JS-assisted de/obfuscation is that it doesn't rely on external servers, you just need to (simply) integrate the JS library.

Another approach is taken by reCAPTCHA Mailhide - the e-mail is revealed only after solving a CAPTCHA (same type as for normal reCAPTCHA). This is less convenient for the user, but practically safe against robots. A disadvantage of this is that it depends on reCAPTCHA's servers (in essence, on Google) - some people are dead-set against any external dependencies.

请持续率性 2024-10-11 15:09:28

这将是一个非常简单有效的方法:

打乱电子邮件地址

它所做的就是将其转换为 ASCII,您所需要做的就是将其插入您的电子邮件地址所在的位置!

尽管您可以选择更多(疯狂的)安全方法,但这将是简单的选择。您还可以尝试此解决方案,它使用 JavaScript 来保护您的电子邮件。

希望这有帮助!

This would be a very simple and effective way:

Scramble email addresses

All it does is convert it into ASCII, and all you need to do is insert it where your email address would go!

Although there are more (crazily) secure ways you can choose, this would be the simply option. You can also try this solution, it uses JavaScript to protect your email.

Hope this helps!

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