好的非侵入式反垃圾邮件混淆器? [英] Good non-intrusive anti-spam email obfuscator?
问题描述
我正在尝试使用JavaScript电子邮件混淆器来减少网站上列出的电子邮件中垃圾邮件的可能性。现在我有了一个基于JavaScript的混淆器,它使用HTML编码和放大器的组合。 JavaScript将混淆的电子邮件透明地转换为普通电子邮件。
I'm trying to come up with a JavaScript email obfuscator to reduce the chance for spam in emails listed on a web site. Right now I've got a JavaScript based obfuscator that uses a combination of HTML encoding & JavaScript to convert an obfuscated email into a normal email transparently.
我这样做:
格式化链接中href的mailto:部分HTML编码如下:
Format the "mailto:" part of the href in links to be HTML encoded like:
mailto:
我还对电子邮件进行编码,替换 @
使用(a)
签名,以便电子邮件显示如下内容:
I also encode the email, replacing the @
sign with (a)
, so that the email reads something like:
stackoverflow(a)example.com
然后我使用一些JavaScript来解密所有的mailto链接这个(a)
登录电子邮件并在页面加载时将它们转换为 @
。
I then use some JavaScript to decipher all mailto links which have this (a)
sign in the email and convert them to @
on page load.
这很有效。对于使用启用了JavaScript的浏览器的用户,他们会看到一切正常。对于未启用JavaScript的人,我知道的每个邮件客户端都会将电子邮件地址视为无效,但用户应该能够推断出更正符号所需的内容。
This works fairly well. For people using browsers with JavaScript enabled, they see everything working normally. For people without JavaScript enabled, every mail client I know would consider the email address as invalid, however the user should be able to infer what is needed to correct the symbol.
我想知道是否有更好的(更少侵入性(或最好,不是非常侵入性)但更耐垃圾邮件的方式)在网页上混淆电子邮件。
I was wondering if there was any better (less intrusive (or at best, not very intrusive) but more spammer resistant) way of obfuscating emails on a web page.
As对于任何类型的混淆,如果人或计算机可以轻易地对其进行去混淆,那么垃圾邮件制造者可以轻松地做同样的事情。因此,我并不期待一个万无一失的混淆,但我很想知道其他建议是什么。搜索Google并没有透露任何我认为比现有解决方案更好的解决方案。我想知道是否还有其他好的选择。
As with any type of obfuscation, if a human or computer can easily de-obfuscate it, then a spammer could easily do the same. Because of this, I'm not expecting a foolproof obfuscation, however I was curious to see what other suggestions were out there. Searching Google didn't reveal any solutions that I consider better than my current solution. I was wondering if there were any other good alternatives.
推荐答案
我用 HiveLogic Enkoder 过去取得了相当不错的成功。如果有什么你可能想看看Dan的编码是如何工作的,因为它可能会给你一些想法来制作一个更强大的混淆器。
I've used HiveLogic Enkoder in the past with pretty good success. If anything you might want to take a look at how Dan's encoding works as it might give you some ideas to make an even more robust obfuscator.
这篇关于好的非侵入式反垃圾邮件混淆器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!