RLROUSE Directory & Informational Resources
  Home        Add URL        About RLROUSE.COM        Picture of the Day        Privacy Policy        Advertise        Contact us        Sitemap

 

  SEO Toolkit
  Webmaster / SEO Info
  Featured Stores
  Featured Text Listings
  Birdhouses
  Birdfeeders
  Great Recipes

 Freebies

  Link to us
  Newsletter
  Recommend

  Site map 

 

Protecting Your Website From Spambots

How to hide your email address from spammers



If, like many webmasters, you get tons of unsolicited mail flooding your inbox, you most likely are the victim of an email extraction spider (spambot). These awful programs spread across the Internet, archiving any email addresses they find listed on websites for future spam delivery.

Almost every website has at least one contact address listed, so almost every website is vulnerable to this kind of hack-spam. 

But there is a way you can prevent spammers from harvesting your email address since their spambots search the source code of your site but not the browser display. All we need to do is separate the components of an HREF Mailto Tag into separate pieces using a simple Javascript.

Consider this script: 

<script language=javascript> 
<!-- 
var showlink = "Contact Us"; 
var showname = "yourname"; 
var showhost = "yourhost.com"; 
document.write("<a href=" + "mail" + "to:" + showname + "&#64;" + showhost + 
">" + showlink + "</a>") 
//--> 
</script> 


Of course, you'll need to rewrite the variables to match your own needs. What we did was disguise the "@" symbol by simply replacing it with its HTML Tag character counterpart (&#64). If you prefer not using JavaScript, you would probably be safe just using this: 

yourname&#64;yourhost.com 

While we're on the subject of special characters, look at the source code below. Looks like a bunch of garbage, right? Now place it into an HTML page and see what happens! 

&#87;&#69;&#66;&#77;&#65;&#83;&#84;&#69;&#82;&#83;
&#74;&#85;&#78;&#67;&#84;&#73;&#79;&#78;&nbsp;&#82;
&#79;&#67;&#75;&#83;


A little prevention goes a long way towards protecting your inbox from spam!
 

About the author:

Muhammad Bilal is a IT engineering student. He has been working with HTML, Graphics, and client/Server scripting languages for quite some time. Visit him at WebmastersJunction.com.


More Interesting Articles

 



 
 


 
 
© 2003-2009 RLROUSE.COM, Abingdon, Va Home