Plugins - graceful mailto obfuscator

StarAdd to favorites

gracefully obfuscates emails as described in a list apart: http://www.alistapart.com/articles/gracefulemailobfuscation

calling mail_to("me@mail.com", "mail me") will generate a link with the href /contactto/new/zr+znvy+pbz, and the classname "obfuscated".

for users who do not have javascript turned on, /contactto/new collects a message which can be submitted to an action which sends the email, without it ever being divulged.

when javascript is turned on, a behaviour converts the obfuscated anchor into a normal mailto: link with the orignal email address. spam bots will now bounce off your site like frustrated popcorn.

play/type

http://playtype.net/past/2008/3/1/graceful_email_obfuscation_in_ruby/

http://svn.playtype.net/plugins/graceful_mailto_obfuscator/

Rails' (MIT)

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Assets

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?