Use This javascript To Hide Your EMail From Spambots
Ever wander why so many webmasters refuse to insert their email address into the body of their webpages?

The reason is to protect their eMail address from email harvesting robots. These robots crawl the Internet searching for email addresses in order to build a spam list.

These spambots ignore the robots.txt file. The robots.txt file is used to instruct legitimate web crawling robots about where they can and cannot go on your site. The file is observed by honest search engine robots but not by spambots.

Spambots will also ignore any instructions within the meta tags of your HTML. This means that they just go around doing what they want violating your rights as a webmaster. Spambots are boundary violators just like the spammers who continue to do what they do. That is, send spam.

Hide Your E-mail Address from SPAM
Hide Your E-mail Address from SPAM

Many webmasters today have decided to use a contact form instead in an attempt to throw the spambots off. This has served a dual purpose for Internet marketers.

1. To keep the eMail address safe from spambots.

2. Another webpage to use for the purpose of channeling Page Rank (PR).

The contact form works fine, but just in case you find the need to add your eMail address into your webpages, you can use some JavaScript to hide the eMail from the spambots.

Below you will discover two Free JavaScript resources. These JavaScripts are easy to use if you have access to the HTML of your webpages. They can be added to any webpage quickly and easily.

The Unspamable eMail Link JavaScript

If you would like to display your eMail link to humans but hide it from spambots, you can use this JavaScript code:

<script language="JavaScript"><!--
var name = "protected";
var domain = "unknowndomain.com";
document.write('<a href="mailto:' + name + '@' + domain + '">');
document.write(name + '@' + domain + '</a>');
// --></script>

You will notice two variables within the script:

var name = "protected"; var domain = "unknowndomain.com";


To insert the email address webmaster@yourdomain.com, simply replace the word "protected" with the word "webmaster" and replace the domain "unknowndomain.com" with "yourdomain.com". That's it.

Automatic Encoding Tool
This tool is easy to use. Just insert the email address you wish to protect and click the button called "Encode mail links": http://www.bronze-age.com/nospam/encode.html

Also, you will need to download a small file called "email.js" and upload it to your website. Full details about this system are available at: http://www.bronze-age.com/nospam/index.html.

Advantages and Disadvantages
JavaScript - Adding an email address builds trust with your visitors because when they click your email link, their mail browser opens and they know that when when they send that eMail, it is going directly to you.

Contact Form - With a contact form, you are sending valuable Page Rank to yet another page on your site. From that page, you can send more Page Rank to still other pages.

Note to Content Management Software Developers
Some article submission services publish authors articles along with the email address of the author. In this day and age, this is unacceptable. I would call this version "the barely ready beta version". In other words, it is ready for BETA release after this problem is fixed.

If you develop Article Publishing software, and the published articles include the authors eMail address, you are on a losing streak. I have spoken to owners of this type of software and they are on the lookout for something better.

This applies to other types of software scripts which publish HTML with an eMail address. Not everybody wants to open up free eMail dumping accounts.


About the Author:
Click to Visit Author's Website The author, Ed Zivkovic is a self taught webmaster. His website contains articles with all sorts of tips for work at home webmasters. Here is the site: Ezau.com

Close    To Top
  • Prev Article-Web Design:
  • Next Article-Web Design:
  • Now: Tutorial for Web and Software Design > Web Design > JavaScript > Web Design Content
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Geek Tutorial
     

    Blogging Tutorial

      RSS Tutorial
      Podcasting Tutorial
    Graphic Design Tutorial
      Coreldraw Tutorial
      Illustrator Tutorial
      3D Tutorials
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial/ Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial/ Articles
     

    XML Style

      AJAX Tutorial
      XML Mobile
    Flash Tutorial/ Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial/ Articles
      Linux Tutorial
      Symbian Tutorial
      MacOS Tutorial
    Personal Tech
      Hardware Tutorial
      Software Tutorial
      Online Auction