This simple script will hide your e-mail address from spam bots. People have reported more than 80% less spam after implementing this neat trick.
We will use JavaScript to display the e-mail address, just about everyone in the world has JavaScript on their browser, so you shouldn't worry about people not being able to see it.
Quick facts about using this:
First, modify the yourdomain.com part to resemble the domain this script will be producing the e-mail. If your e-mail address is sales@domain1.com then you would enter domain1.com inside the place where yourdomain.com is at.
<!--
function generate_address( username ) {
var domain = "yourdomain.com";
var atsign = "@";
var addr = username + atsign + domain;
document.write(
"<" + "a" + " " + "href=" + "mail" + "to:" + addr + ">" + addr + "</a>");
}
//-->
Then the following code between your <head> and </head> tags:
<script src="scripts/gen_email.js" type="text/javascript"></script>
Now whenever you want to display a certain e-mail address, insert the following code where you want the address displayed:
<script language="javascript" type="text/javascript">
<!--
generate_address( "part1" );
//-->
</script>
You will want to exchange part1 with the first part of your e-mail address. If you e-mail address is Sales@yourdomain.com you will substitute part1 with the word Sales.
Include this anywhere on your page that you want to display the e-mail address. So instead of using the code:
<a href=mailto:something@yourdomain.com>something@yourdomain.com</a>
You will use:
<script language="javascript" type="text/javascript">
<!--
generate_address( "something" );
//-->
</script>
It will produce the same results, but also make it so your address is hidden by spammers! Now that wasn't too hard, was it?
We offer many contact options:
Phone: (888) 777-1815
Request Callback
Free Consultation
RPS Online Center
Customer Support
New York
622 Rushmore Avenue
Suite 200
Mamaroneck, NY 10543
Arizona
1753 E Broadway Rd
Suite 101-255
Tempe, AZ 85282