Spam!

I've been plagued with spam email. I get mail telling me how I can feel better if I buy HGH or some such thing, add 3 inches to my WHAT?, see pictures of women doing WHAT?, with ANIMALS?, and also, lots of investment advice. I especially like the investment advice. It mostly comes from one source, Investor Insights. But they use a different email address every time they send me email. Now, get this; they expect me to trust their investment advice, but they don't use a real email address. So when I enter the address in my blocking software, they get around that by using a new address the next time. So who is stupid enough to take investment advice from creeps like this?

One of the reasons I get so much spam is that my email address used to be on my web site. It was right there in the html code. So the dirtbag spammer robot software that goes around the web harvesting email addresses from web pages could easily pick out my address because it looks for the "@" symbol, and assumes that the word before it and after it combined with @ is an email address.

So the trick is to not put an email address as such in your html. But if you have a web site, you probably still want people to be able to send you email. You can do that with javascript, and it's really easy. All you have to do is copy this little bit of javascript code into your web pages wherever you want to have an email link to yourself.

Start with the regular mailto: link.

<p align="left">Mail to:

There, that was easy!

Now add the javascript. And you can make the font size whatever you want.

<script language="javascript" style="font-size: 8pt">
<!--
var showlink = "the name you want displayed on the web page";
var showname = "characters before the "@" symbol in your email address";
var showhost = "characters after the "@" symbol in your email address";
document.write("<a href=" + "mail" + "to:" + showname + "@")
document.write(showhost +">" + showlink + "</a>")
//-->
</script>

I know, that seems a bit complicated. But I'm now going to walk you through it.

What you want to see on your web page when viewed in a browser is just your name. When you view the source code for the page in a text editor, you see the javascript, not an email address. Remember, the spammers are looking for email addresses in html source code.

So, let's say your name is Fred Smith, you have an account with hotmail.org, and you want a link to your email address, freds@hotmail.org

The javascript would be:

<script language="javascript" style="font-size: 8pt">
<!--
var showlink = "Fred Smith";
var showname = "freds";
var showhost = "hotmail.org";
document.write("<a href=" + "mail" + "to:" + showname + "@")
document.write(showhost +">" + showlink + "</a>")
//-->
</script>

Put that in your web page code and when you view the page in a browser, you'll see your name as a highlighted link, Fred Smith. When you click the link in a browser, it will open your email and enter freds@hotmail.org as the address. But the spammers won't see the actual address, because the only "@" symbol in the html code is the one preceded by and followed by quotes (in the javascript)! So the scumbag spammers can send mail all day long to "@"!

Pretty cool, huh?

Here's how my email address looks in the javascript.

<SCRIPT LANGUAGE="javascript" STYLE="font-size: 8pt">
<!--
var showlink = "Peter White";
var showname = "peterjwhite";
var showhost = "peterwhitecycles.com";
document.write("<a href=" + "mail" + "to:" + showname + "@")
document.write(showhost +">" + showlink + "</a>")
//-->
</SCRIPT>

And when viewed in a browser, all you see is Peter White, and it's a link!.

Remember to insert this in the HTML code itself! If you create your web pages in a program like Dreamweaver (like I do) or some other WYSIWYG development tool like Frontpage, you're probably used to working in a word processor type environment, and rarely if ever look at the HTML code. Well, if you copy this into the WYSIWYG window of Dreamweaver, etc. it will just appear like the code above when you view it in a browser, just like you're seing it now. It won't function like javascript. You need to copy this into the code itself in order for it to work.

Back to Peter White Cycles home page