Webmaster Site - Australian Webmaster Resource Site, Australian Webmaster Unite How to hide e-mail addresses from spammers
How to hide e-mail addresses from spammers Webmaster Lessons Tutorial TUT @ Webmaster Site.com.au

   How to hide e-mail addresses from spammers Lesson / Tutorial


  How to hide e-mail addresses from spammers

    added on the Jan 2, 2005


How to hide e-mail addresses from spammers


Unfortunately, there are a lot of unscrupulous people who send spam by the thousands each day. Well, here's one way to seriously decrease spam.

Spammers comb HTML page source with robots looking for addresses that look like fake@ooo.com (hope they try to send to that one!), and they won't be able to do much with addresses coded using the following java script unless they visit every Web page by hand (which would be an ideal punishment for a spammer...).

Even if you're not a programmer, you should be able to handle this one. Basically, the code keeps the mailto:, your name, and your domain separate in the HTML file, combining them only when the page is browsed. It will even work with FrontPage:

<script language=javascript>
<!--
// By Joseph McLean <flux@thecentre.com>
var linktext = "Web Spider";
var email1 = "webmaster";
var email2 = "freewebmastertips.com";

document.write("<a href=" + "mail" + "to:" + email1 + "@" + email2 + ">" +
linktext + "</a>")
//-->
</script>


To customize, replace "Web Spider" with the text you want people to click on. Also, following email1 replace webmaster with your name (if your e-mail address is john@0000.com, put john there). Finally, following email2 replace ufuweb.com with the rest of your address.

Implement this code and get rid of a lot of spam!


Editor's Choice Links ::


  Home Page
  Forums
  Webmaster News
  Add a site
  Site map
  Advertising
  Contact Us

  ozLance - The Freelancers Marketplace
  Australian Web Directories
  Host Compare
  WebTemplates.net.au
  DirStats - Directory List
  Webmaster Directory Network
  Free Website Templates

Webmaster Site © 2004, All rights reserved
Website design by - No Fear Computing