Between my other web developer work, I’ve created an email encoder, essentially a sophisticated obfuscation tool that conceals email addresses within a web page.
Until now, I have relied on the domain with the same name to encode emails. Unfortunately, the JavaScript it produced is of another time and quite easy to decipher. It contained document.write
, a command that is no longer supported because it can have unwanted side effects.
Each time you press generate, this tool will generate some unique JavaScript code. This will perform the task of decoding the email address, its recipient and subject for your web visitors, all at the expense of unwanted spam bots. It will create something particularly challenging for bots to decode, so your email address should remain significantly safer once this is applied.
Features:
Some of the features include:
- Optional link text such as “email me”
- Set the recipient’s name
- Set a pre-written subject
- Allow for all elements matching a specific class to be replaced with the email link
- Or, use that same reference to place the link within the element
- Capabilities to write in place (if a
script
tag is used) or switch out a placeholder image. - Two levels of JavaScript code compression
View the Online Email Obfuscator and let me know what you think in the comments.