OT: Re: [Project_owners] Re: spam on email addresses off of mozdev.org pages

Erwin Wessels erwin at transpontine.com
Wed Nov 26 11:55:32 EST 2003


Thierry Raguin wrote:

> What I did on my project is a simple javascript function displaying an 
> alert message with the e-mail address 
> (http://hon.mozdev.org/members.html). It's not very user friendly but 
> it should work ok on any browser. The main problem is that it wouldn't 
> take long for spambots to also look for such methods so in the case of 
> dynamic pages, it could be interesting to replace the '[AT]' with a 
> random string...
>
> <script type="text/javascript">
> <!--
>  function mailTo (obfuscatedEmail)
>  {
>    while (obfuscatedEmail.indexOf("|") != -1)
>    {
>      obfuscatedEmail = obfuscatedEmail.replace("|", "");
>    }
>      alert(obfuscatedEmail.replace("[AT]", "@"));
>  }
> //-->
> </script>
> <a href="Javascript: 
> mailTo('t|.|r|a|g|u|i|n[AT]n|e|t|u|n|i|o|n|.|c|o|m')">Thierry Raguin</a>
>
Have you tried doing a location.go or whatever to the new mailto: 
address? Not tried, not tested, but if it works it would make things far 
more transparent for the user...

-E

-- 
This is a signature.



More information about the Project_owners mailing list