Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Hiding email addresses


  • From: petersen at ma.medias.ne.jp (Scott Petersen)
  • Subject: [Javascript] Hiding email addresses
  • Date: Thu Sep 28 01:13:25 2006

In order to hide email addresses from spam address collectors, I have come
up with the following:

    <script type="text/javascript">
// <![CDATA[
    var names = new Array("BigBoy","LittleBoy"
,"petersen","Frenchie","hailMary");
    var domains = new
Array("someDomain.com","someDomain.ne.jp","ma.medias.ne.jp","mars.com");
    function mailsomething(x) {
        name=names[x];
        domain=domains[x];
        location.href='mailto:'+name+'@'+domain;
        }
// ]]>
</script>
</head>
<body>
<p><a href="#" onclick="mailsomething(0)">Send Mail</a></p>
</body>

This should send mail to BigBoy@xxxxxxxxxxxxxxx My question is: Does this
really slow down the address collectors?

My thinking is it would since the two parts of the address are not
contiguous, though would not be hard to recover with a half-way
sophisticated robot-collector.

Thank you.