1
Dec

Hide your websites email links from email harvesters

You can make several calls to the "emLink" function and passing a string of name and domain in reverse sequence.

 

<html>
<head>

<title></title>

<script type="text/javascript">
function stringReverse(textString) {
   if (!textString) return '';
   var revString='';
   for (i = textString.length-1; i>=0; i--)
       revString+=textString.charAt(i)
   return revString;
}

function emLink(name, server)
{    
     // the name and domain are reversed into the correct reading format
     // the email link is then created on your website
     // Because there is no actual email address in the expected format
     // the email harvesters never see the links on your website.
     var rname = stringReverse(name);
     var rserver = stringReverse(server);
     var email = rname + "@" + rserver;
     var mailText = '<a href="mailto:' + email +'">' + email + '</a>';
    
     document.write(mailText);
}
</script>
</head>

<body>
  
       <script type="text/javascript">
       // Name and domain (which are in reverse) are passed
       // to a javascript function which puts it in correct sequence
       // You can use this script format to display multiple emails
       // in a div or frameset or placed anywhere on your website  
            emLink("emaNruoY","moc.niamoDruoY");
       </script>

</body>
</html>

Permalink | Comments (0) | Post RSS