As davido pointed out, there are better ways to obfuscate e-mail addresses than using images. My personal favorite is to add some normal anti-spam noise ("NOSPAM" etc.) to the address and then use CSS to hide it from normal browsers. Something like this will do the trick:
somebody@<span class=hidden>#NOSPAM#</span>example.com
where the class "hidden" is defined as:
.hidden { display: none; visibility: hidden; }
Any CSS-capable browser (and most are, these days) will hide the noise. If the user is viewing the page in a non-CSS browser, or is cutting and pasting the address, it should be obvious how to de-munge it. But a spambot probably won't even recognize it as an e-mail address. (They usually seem to look for patterns like /[-.\w]+@[-.\w]+\.$tld/, where $tld is a list of top-level domains.)

One important thing to remember is that you should not copy the example exactly. Change the name of the class, change the bogus string, add other <span> tags so the spambots can't filter out those, etc. Remember, diversity is the best defence against parasites of all kinds.


In reply to Re: Email anti-harvester code by iltzu
in thread Email anti-harvester code by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.