1. Stop "spam bots" from pulling your email address(es) from your site.
If you have your email link in text, sooner or later it will be picked up by the spam bots and you'll be flooded with spam, period. This is the sort of email link that I mean: somebody@thriftysites.com or Email Me. Spam bots run through run through millions of sites per day combing them for these addresses for spam. Since the full email address is shown in the code then it's sitting there begging for spam.
The very best way to handle email from a website nowadays is to use a form with a Submit button. That, though, takes a bit of practice, so we'll cover a tutorial for a simple form in another article.
Our choice for 2nd best, which can be done with a simple copy/past of code, is "hiding" the email address with Javascript. Simply paste the following code onto your webpage where ever you want the link:
<script language="JavaScript" type="text/javascript">
<!--
document.write("<A HREF='mailto:"+"somebody"+"@"+"thriftysites.com"+"'>"+"Contact"+" Us"+"</A>");
//-->
</script> |
Here is what the above looks like on the page:
.
Change the parts in red to show your email address and whatever text you want for the link.
Designate font types by entering code above the script languate line such as
</font><font face="Tempus Sans ITC">
<strong>
<em>
<script language="JavaScript" type="text/javascript">
<!--
document.write("<A HREF='mailto:"+"somebody"+"@"+"thriftysites.com"+"'>"+"Contact"+" Us"+"</A>");
//-->
</script> |
Gone is the day that we needed to worry about users who do not have Javascript enabled. As of January 2007, the estimate, according to w3schools, is 94%.
- Back to the top - |