Loading...

Knowledge Base

Protect Email From Spambots

Spambots are designed to get email addresses from the internet to create mailing lists for sending unsolicited emails or spam. Spambots may gather these email accounts from websites, newsgroups or chat room conversations.

This usually happens if it finds something along: mailto:[email protected], you’ll likely find your email on their list.

There are a few techniques we’ve gathered for avoiding these spambots, it has been around for years, but it’s surprising how many webmasters are not using them. Here are two simple codes you can use:

<script language=javascript>
<!–
var linktext = “THIS APPEARS ON THE PAGE”
var email = “[email protected]
//replace [email protected] 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>

The code above won’t let spambots get your email address, at least with their current way of getting it.

Below is another code that shows your email address:

<script language=javascript>
<!–
var email = “[email protected]
//replace [email protected] 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>

 

These codes will be placed on each of your site pages between your <body> </body> tag, make sure to replace all instances of your old “mailto” HTML code.

Other ways to protect your email:

  • Image to display your email
  • Use online form submission
  • Use special HTML Characters
  • Use CAPTCHA

 

Did you find this article helpful?

 
* Your feedback is too short

Loading...