CipherMail provides a safe alternative to the mail_to helper by hiding mailto links from e-mail harvesting bots. The generated output is completely obfuscated by a 1024 bit random key. They keyword is stored on the server, so it is never revealed to the client. Processing is performed on the server-side via an AJAX request and the decrypted redirect is returned to the client, opening a mail composer window… just like normal mailto link.
<%= ciphermail_to "John Smith", "firstname.lastname@example.org" %>
Note: A new key is generated every time you restart your web-server.
If you'd like to manually generate a new key, simply run: ruby ./script/runner "CipherMailSetup.genkey"
That’s it! Have fun, and feel free to send me questions or comments.
Copyright © 2007-2009 Michael Behan aka "JabberWock" (djether /AT gmail /DOT com) Released under the BSD license
|Created||23 July 2007|