by redmage · 16y ago · 0 comments
By default I use the link to my "mailhidden" email. Then, some Javascript code [2] replaces that link with a mailto link. The email is saved in the js file after being ROT13'd and encoded as HTML ASCII entities.
If the user has JS active, he/she sees a regular mailto link. Otherwise, he/she sees an http link to recaptcha and, as long as the user's browser can display images, he/she can solve the captcha and see my email address.
You can see an example of this working in my personal site. [3]
Until spambots can run javascript or solve recaptchas, I'm safe. :)
[1] http://mailhide.recaptcha.net/
With the captcha, I can be fairly sure that a human solved it (reCAPTCHA is particularly good at filtering bots, afaik) and the user gets a clickable link.
In any case, that's just to accomodate browsers without Javascript or with it disabled. I believe most people have Javascript enabled, so they'd get a regular mailto link.