How to SPAM Proof your website and Email
Spamming is growing faster than the websites, it is absolutely world known truth. How to protect your website and e-mails from SPAM, there are lots of ways available, but you must be aware of many things before we start this guide, because lots of people knowingly or unknowingly giving out their e-mail ID’s in the spam sites, that is a biggest mistake commonly
happening in the world. The how-to avoid that kind of mistakes, and another thing is showing E-mail ID in websites. So these are the worst and common mistakes done by most of the webmasters and normal people.
This guide helps you in creating a SPAM proof website within minutes and secure you from being spammed in the future.
Techniques to create a SPAM proof website:
Using JavaScript to E-mail Addresses:
Create A Spam-Proof Mailto Link
This snippet of JavaScript creates a clickable link that launches the visitor’s email application,
assuming that their system is configured to work with “mailto:” hyperlinks. You can replace the
link text with your own message, but see example 2 if you want to display your email address as
the link text.
<script language=javascript>
<!–
var username = “username”;
var hostname = “yourdomain.com”;
var linktext = “Click Here To Send Me Email”;
document.write(“<a href=” + “mail” + “to:” + username +
“@” + hostname + “>” + linktext + “”)
//–>
</script>
A Spam-Proof Mailto Link That Shows Your eMail Address
<script language=javascript>
<!–
var username = “username”;
var hostname = “yourdomain.com”;
var linktext = username + “@” + hostname;
document.write(“<a href=” + “mail” + “to:” + username +
“@” + hostname + “>” + linktext + “”)
//–>
</script>
Displaying Email Address Without A Mailto Link:
Here’s a snippet that displays your email address without a clickable link:
<script language=javascript>
<!–
var username = “username”;
var hostname = “yourdomain.com”;
var linktext = username + “@” + hostname;
document.write(username + “@” + hostname)
//–>
</script>
Using A Contact Form:
Hiding The Email Address in a Form Field:
<script language=javascript>
<!–
var username = “username”;
var hostname = “yourdomain.com”;
var linktext = username + “@” + hostname;
document.write(“<input type=hidden name=email
value=” +username + “@” + hostname” + “>”;
document.write(username + “@” + hostname);
//–>
</script>
May be there are several ways to the same job but these are for nowise and beginners, I hope you enjoyed this article, please let me know your comments and suggestions in the below section.
Category: Misc, Tips, Tutorials, Webmaster Tools
About the Author (Author Profile)
Arafath Hashmi is a Blogger from 2007 and he wrote 700 and above articles for solvater.com, He is a Senior SEO Analyst.- Sujimichi (@sujimichi)







