Prevent spam before it starts with our JScript
If you're like us, then you're getting really, *really* tired of all the spam mail 
piling up in your in box. While we can't tell you how to get rid of it entirely, we can 
give you a tip that will help cut down on spam. As you may know, most spam list generators work 
by browsing the Web and gleaning email addresses from Web sites. Because of an
email address' distinct format, it's pretty easy to find one in a page. Well, you'll 
be happy to know there's a technique that lets your email addresses show up in a page, 
but still defeats the spam list spiders. The trick is to use a JavaScript function, like the
one that follows, to generate the email addresses:
 
<script language="JavaScript">
<!-- Hide from old browsers
function ShowAddress(part1, part2)
{
  var addr = part1 + "@" + part2;
  var result = ("<a href='" + "mail" + "to:" + addr + "'>" + addr + "</a>")
  return result;
}
//-->
</script>
To make an email address appear in the page, call the function like so:
<script language="Javascript">
<!--
document.write(ShowAddress("wdv","zdjournals.com"));
//-->
</script>
 



Active Server Index

Main Index

Search RD Techbase