Obfuscating Email Addresses
People occasionally ask how to modify the “Convert Selection to Entities” command to also convert ASCII so that they can use it as a simple email address obfuscation technique.
Because of that, we want to add an actual “Obfuscate Email Address” command, but how should it be done?
A study from 2002 says that entity-encoding the email address is enough (conclusion 5) which I find rather hard to believe, which is actually the sole purpose of this post, I hereby give you one piece of entity-encoded email address: wrwilsq02@sneakemail.com. I will update this in a month or so, saying if it got any spam.
2006-09-10: And in response to this comment here is a non-obfuscated email address: 7fi8nmi02@sneakemail.com
2006-10-16: The results are in: 286 emails received to the plain text address and just 1 received to the entity-encoded address. This was from a Nigerian scammer, so perhaps it was manual, although none of my contact addresses have received such email.
Though regardless of whether this address gets spam or not, I think the TextMate command to obfuscate an email address should (when called in an HTML context) insert a small JavaScript which use document.write
or similar. Perhaps providing a <noscript>foo~at~bar•com</noscript>
version.
So any suggestions as to how the code should be would be appreciated. The goal is to keep it as short as possible (since it will be inline). Add your suggestion as a comment to this entry, remember that formatting is Markdown, so indent your code by one tab or four spaces.
Let me end this post with a general advice: when you start your business do not pick logical addresses such as sales
, feedback
, support
, and similar. These will get spam, no matter how well you obfuscate them.
I personally use tm-sales
, tm-feedback
, tm-support
, etc. which currently do not get any spam at all.