Yale University Library

 

Library Access Integration Services

Quick Links
How to Protect e-mail address on Web pages from Spam robots

Below are two solutions for masking e-mail addresses on Web sites. The masking of an e-mail address may protect it from SPAM robots that harvest addresses for SPAMmers.

Use View / Source to see the actual javascript.

Solution #1:

Click here to send mail.

Solution #2 (Recommended):

Solution #3:

This is the simple way to protect your email address:

<a href="mailto:yourName&#64;adomain.com">Email me</A>

The text '&#64;' effectively replaces the '@' symbol. But when a user clicks on the link it will work well.