MYOFB Email Scams
Home | Computer Protection | Privacy | Viruses | Spam | Email Scams | Scams | TechNotes | Computer Jobs | Archive | Email Scam Blog

Javascript Spam Proof Email Links

By WW

No emails here Mr. Spambot, move along...

If you write HTML code, this is how to keep spammers from scraping email addresses form your site.

Editor: WW - 08/20/08
Mind Your Own F*ing Business


Link your email address on a webpage using the HTML tag mailto:me@domain.com is sure to get that email on a spammers mailing list.

Spammers use harvesters (like search engine spiders) that scour web sites looking for mailto links - then they take the email out and add it to their spam mailing list. Here is how to avoid this problem.

Spam Scraper Proof Javascript Email Links

You can copy and paste this code, just change the variables (in blue) to match your email - it will create a normal email link and cannot be seen by spammers.

The code here shows how to make a link for the email me@mydomain.com


<script language="JavaScript">
<!--
var domain = "mysite";
var name = "me";
var extension = ".com"; 
var link = "email me";
// do not change any code below this line
document.write(' <a href="mailto:' + name + '@' + domain + extension + ' " > ' );
document.write(link + ' </a>' );
// -->
</script>

Make sure you do not use your email address as the link! If you want to use an email address use the HTML character code instead of the @ symbol. & #64; is the code to make an @ symbol.

You can also use a image file with yor email written on it. This is the method used by domain registrars to keep your privacy. Many people also spell out the at like so:

name (at) yahoo.com

then link that.


Related MYOFB Articles:



Javascript Spam Proof Email Links

by: WW







Google


Freelance Designers | Event Planners | Freelance Services | My City Guide | Web Design Jobs


© Copyright 2003,2004,2005,2006,2007 All Rights Reserved.