This topic might be interesting for blogger’s / tech geeks. Are you get annoyed by spam mails, because you published your email address on your blogs / contact page of your site. Here is a workaround for it, you can simply use some client side scripting to print the email address on the site document.

<script type=”text/javascript”>

var your_email_address = ‘your address’ + ‘@’ + ‘your domain.com’;

document.write(‘<a href=”mailto:’ + your_email_address + ‘”>Contact me</a>’);

</script>

Any change for email address display in user perspective?

Absolutely No! Since we are printing it into the document.

What we gain?

We can make the document spam proof.

You know how the spam bots works? It simply crawl your site and parse your document, during the parsing  programs grabs all email addresses in source document. Spam doesn’t bother about the client side programs normally, moreover it need a client side virtual machine to execute the client side javascript code.
Thus your email address won’t displayed in the document. It is cool idea right?

Another workaround to make spam proof is adding your email address as image !!!

Click here to submit your review.


Submit your review
* Required Field

Tags: , ,

ABOUT THE AUTHOR:

Sanil S Founding member of MobMe Wireless Pvt Ltd, Ayruz Web Holdings

4 comments on “Make your contact email address spam proof using javascript

  1. Binny V A on said:

    I am not sure this method will work – I have heard that many spam bots are running on Rhino – that can interpret javascript.

  2. @Binny..
    If you are experiencing the spam just try out this. I know some of the bots did recognize javascripts, that is why I wrote “normally” in the last paragraph.

  3. pariVisse on said:

    best search engine google

  4. Sarah J. on said:

    I was wondering about this – do you have any suggestions? I’ve done some research but haven’t been getting very far. Looking for some guidance I guess…

Leave a Reply

Your email address will not be published. Required fields are marked *

*


seven × 8 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>