PHP Classes

Interesting but not practical

Recommend this page to a friend!

      CSS Protector  >  All threads  >  Interesting but not practical  >  (Un) Subscribe thread alerts  
Subject:Interesting but not practical
Summary:I won't use that...
Author:Philippe Lhoste
Date:2005-08-01 07:42:08


  1. Interesting but not practical   Reply   Report abuse  
Philippe Lhoste - 2005-08-01 07:42:08
The idea behind this code is interesting, and I think too it is quite innovative.
But frankly, I think this is too much overhead for such a protection.
First, it is not practical: you have to look at the not very readable string and retype it in the address field of your e-mail client. No clean advantage over a plain image.
Second, it doesn't work on all browsers, as the author explain.
Third, it is not usable by people with disabilities, like the addresses on images.
And last, in its current state, it works only for classical looking e-mail addresses (a problem shared by most e-mail check regular expressions), failing on "John O'Reilly" or GahMoo@[]...

I don't think e-mail harvesters goes to lengths like using optical character recognition (OCR) to read e-mails. First, they have to know that an image contains an e-mail, second I think the main goal for robots is to collect as much e-mails as fast as possible, so they won't spend seconds on cracking an e-mail. So images are probably safe.

So are schemes like Foo(a) or Foo at Bar dot com or, etc. Indeed, you can instruct robots to crack most of these schemes, but is it worth the trouble? (Only a spammer can answer...)

There is also the possibility to build the mailto address with Javascript, but JS has to be enabled.

I even believe that the scheme where you replace some chars by their corresponding entities or encoding can even be used, as I think robots won't go lengths to decode them (speed, you know?). I can be wrong, of course, but this has the advantage of being simple, working with all browsers and being accessible and practical.
<a href="&#109;a&#105;l&#116;o&#x3A;Ph&#105;l&#105;ppe%2DLhos&#116;e&#x40;Rando&#109;%2EDo&#109;a&#105;n%2Eorg&#63;subjec&#116;&#61;Your wonderful site" title="E-mail me!">Ph&#105;l&#105;ppe%2DLhos&#116;e&#x40;Rando&#109;%2EDo&#109;a&#105;n%2Eorg</a>
You click on the link, and a new compose window of your prefered e-mail client opens with the address and the suject already set...
Indeed, this is a weak scheme, but I think that the only way to avoid spam is actually to have no e-mail addresses...

Note: I just think of another way of using CSS to protect e-mail: split the address in three parts or more, put them in divs sprinkled in random order in the source code. Use CSS to position these div so that together they display the whole address. Again, the address will be readable but have to be manually typed, alas, and probably not accessible.