July 28th, 2008

bin

Spam-protection

A proposal for the protection of email addresses posted to the Internet:
<span class="rot13">wbgn@tehax.bet</span><noscript> (ROT13)</noscript>
<script>$("span.rot13").val(rot13($("span.rot13").val()));</script>

Normally, I am opposed to javascript. However, I think this bit happens to meet both of my two primary requirements:
A) When javascript is enabled, the effect is unquestionably benign.
B) When javascript is disabled, it falls back gracefully such that the page appears no worse than it would have if it were designed without scripting.