Forum Moderators: open
I was searching for a script to protect a simple mailto: link from spam. I came across a rather compex script, and realized that I could simplify it to a single line of code, as follows.
<a href="" onmouseover="this.href='mailto:contact@example.org'" onmouseout="this.href=''">contact@example.org</a>
Does this work? I don't know much about spambots but it seems that they will not activate the javascript mouse event. I know I have written the email address twice in the code, and that would be recognized, but in actual implementation that would be in an external script.
[edited by: tedster at 6:02 am (utc) on Jan. 24, 2008]
[edit reason] switch to example.org - it can never be owned [/edit]
but in actual implementation that would be in an external script
When the page is loaded in a browser, have a look at the source code. If you can see it, so can the spambots :(
I suggest you have a look at Results 1 - 10 of about 37 from webmasterworld.com for mailto obfuscation [google.com]