UCSF University of California, San Francisco      About UCSF       Search UCSF       UCSF Medical Center     
  Education & Training    Research    Patient Care   
 
Print This Page For Normal View, Click Here For Larger Font Sizes', Click Here
 
 
Information Services Unit
Web Resources
Announcements
Web Techniques
Web Worker Meetings
Training Resources
Web Style Guide
 

"Scrambling" Your Emails to Avoid Phishing by Spam Spiders

Replace @ with @

Use the hex character; "@" in place of the normal @ sign in your e-mail address.

(Unfortunately, email spiders can be programmed to detect and compensate for the "@" character. However, with literally billions of web pages to choose from, whether they would bother is another matter. )

Your link code should look something like this (change it to suit your site):
<a href="mailto:contact&#64;medsch.ucsf.edu">Contact Us </a>

It will render in a brower like this:
Contact Us

When you hover it and in your status bar you will see the email address with the @ intact.

back to top

Use Javascript

This is not as simple, but more efficacious.

Copy this text exactly and paste it in the code view. Update for specificity to your site.

<script language="JavaScript">
document.write('<a href="mailto:contact' + '&#64' + 'medsch.ucsf.edu" >' + 'contact' + '&#64' + 'medsch.ucsf.edu</a>');
</script>

Which is rendered like this:

or

<script language="JavaScript">
document.write('<a href="mailto:contact' + '&#64' + 'medsch.ucsf.edu" >' + 'Contact Us' + '</a>');
</script>

back to top

Updated: May 17, 2007
    Site Map    Contact Info     ©UC Regents