You've found Scriptar's Anti-Spam Page!

Do you like getting spam? Did you know that many spammers use simple web spiders to get your e-mail address from your HTML pages? Do you typically modify your e-mail address on your pages so they look something like this yourname@NOSPAMhotmail.com (minus the NOSPAM)? Well here is a simple yet effective way to prevent web spiders from getting your e-mail address: I call it the JavaScript encoded e-mail (JEE) technique. While using this technique will not eliminate spam (I wish), it's always a good idea to be thinking of ways of making it harder on spammers. Note: if you send unsolicited e-mail, please leave the spam in the can.

Here's what you have to do:
Step 1: Get an e-mail address (as if you didn't already have one)
Step 2: Learn HTML (otherwise, why would you care)
Step 3: Make a web page
Step 4: Put a JEE link to your e-mail on the page
Step 5: Live without having to worry that the spiders are going to get you...

How do you make a JEE link you ask? The simple technique involves using the JavaScript function unescape(). You see, built into all of the latest browsers (AKA "User Agents"), there is a scripting (programming) language available to any web developer called JavaScript.

Whereas in regular HTML you create a link to your e-mail by doing this:

<A HREF="mailto:your_email_address@your_isp.com">[e-mail me]</A>

With JEE you would do this:

<A HREF="" onClick="unescape('%6d%61%69%6c%74%6f%3a%79%6f%75%72%5f%65%6d%61%69%6c%5f%61%64%64%72%65%73%73%40%79%6f%75%72%5f%69%73%70%2e%63%6f%6d');return true;">[e-mail me]</A>

To see how the unescape() function works, copy the following code (the whole line) to you address bar and press enter:

javascript:alert(unescape('%50%72%65%74%74%79%20%63%6f%6f%6c%20%68%75%68%3f%20%28%63%68%65%61%70%20%74%68%72%69%6c%6c%29'))

You can use the built in JavaScript function escape() to partially encode your e-mail address if you like, but it may still be readable. Instead of using escape(), if you have at least a JavaScript 1.2 capable browser, you can use this little utility I wrote for your convenience. Once you get your e-mail address in the encoded format, put it in the onClick attribute (AKA "event handler") of your link (see example).

Anyway... here's what you need (view source to see how it works):

T1:

T2:

T3:

Any web spider that comes to your page looking for e-mail addresses will not be able to find one (because they do not execute the code on the page). However, any real person that clicks on your link to send you an e-mail (if they have a JavaScript enabled browser) should have no problem. Of course, once they have your e-mail address, they can do anything they want with it... (oh well). I can virtually guarantee that you will still get spam in your inbox until the day that it becomes unprofitable to do so. At least now you can make it harder though (and your friends will think you are cool.) By the way, this technique also works on other types of links as well (not just mailto links.)

If you don't understand, send me an e-mail and I will attempt to explain more... Spread the word and happy coding!

For more information on spam and ways to stop it, do a search on SPAM.

Scriptar's Home Page