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 spam proofing website How to SPAM Proof your website and Emailhappening 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.

Related Posts:

  1. How to fully protect WordPress blog from SPAM comments WordPress is a famous and very reliable service for blogging,...
  2. Optimize JavaScript based Website for Search Engines – SEO Tips Search Engine crawlers cannot understand JavaScript and other Database languages, if...
  3. Download Email Validator PHP Application Emails are very common in today, everybody who has some...
  4. Linux Bug allows to become Normal user to Root user Linux is famous for its security and high performance, but...


Arafath Hashmi is a Blogger from 2007 and he wrote 700 and above articles for solvater.com, He is a Senior SEO Analyst.

One Response to “How to SPAM Proof your website and Email”

  1. Sujimichi (@sujimichi) says:

    Hi, thanks for the post.

    I have been using an ajax solution to this as it gets away from having any data on the page initially.

    Basically once the page loads I use jquery to fetch an address from the server and insert it into the page. Does that add an advantage?

Leave a Reply

 
Powered by Webmasters Forum