How to protect your email from spambots?

Solution

Are you protecting your email addresses?

Spammers get your email address by using evil automatic software that scours your website. When they find something like "mailto:[email protected]", they put you on their spam lists. These software are known as "spambots".

Techniques for avoiding the spambots have been around for years, but it's surprising how many webmasters aren't using them.

To protect your email addresses, here's a simple bit of code that robots won't be able to harvest, at least with their current techniques:
<script language=javascript>
<!--
var linktext = "THIS APPEARS ON THE PAGE"
var email = "sarah"
//replace sarah with your email username
var emailHost = "YourDomain.com"
//replace YourDomain.com with your domain name
document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + linktext + "</a>" )�
//-->
</script>

If you want to show your email address, use this instead (do not use the above code�and replace the linktext with your email address):
<script language=javascript>
<!--
var email = "sarah"
//replace sarah with your email username
var emailHost = "YourDomain.com"
//replace YourDomain.com with your domain name
document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost + ">" + email� + "@" + emailHost+ "</a>" )�
//-->
</script>

Put this code on your pages, making sure to replace all instances of your old "mailto" HTML code.

Some other ways to protect your email:

  • Image to display your email
  • Use online form submission

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Common Email Errors

Solution This are some of the common email problems user experience Problem: Incorrect...

How to troubleshoot my email problem?

Solution Here's a brief troubleshooting guide to setting up email. 99% of all email issues...

What are my email server information?

Solution Outgoing SMTP server: mail.yourdomain.com Incoming Mail server:...

My friend sent me an email but i do not receive it, what could have happen?

Solution You will need to check your email account free space available, in the event that the...