Hide email addresses in source code
There are a number of ways that you can stop web crawlers finding email addresses within your source code, yet still display the details correctly within your web page. Two examples are as follows:
  • Fragment the email address
  • Use an ASCII code equivalent

Fragment the email address
Use the following javascript to break up your email address and then re-construct it. In this example it uses an array of 6 values (0 to 5) that contain elements of the email address

<script type='text/javascript'>var a = new Array('com','c.','dj','cc','l','@mk');document.write("<a href='mailto:"+a[2]+a[4]+a[5]+a[3]+a[1]+a[0]+"'>"+a[2]+a[4]+a[5]+a[3]+a[1]+a[0]+"</a>");</script><noscript><b>YOU MUST ENABLE JAVASCRIPT TO SEE THE ADDRESS</b></noscript>

This code then re-displays as

Use an ASCII code equivalent
The next option is to replace each character with it's equivalent ASCII code using the Mung tool.

Enter the email address that you wish to translate and then select Mung. The equivelant ASCII version will then be displayed, for example, enter djl@mkccc.com and it will return the string

&#100;&#106;&#108;&#64;&#109;&#107;&#99;&#99;&#99;&#46;&#99;&#111;&#109;

In your mailto href entry, instead of:

<a href="mailto:djl@mkccc.com>djl@mkccc.com</a>

Enter the following:
<a href="mailto:&#100;&#106;&#108;&#64;&#109;&#107;&#99;&#99;&#99;&#46;&#99;&#111;&#109;>
&#100;&#106;&#108;&#64;&#109;&#107;&#99;&#99;&#99;&#46;&#99;&#111;&#109;</a>

This code then re-displays as djl@mkccc.com