Hide email addresses and links.

home page
spamgard.js

* 23 February, 2005 - improved link modifying code.
* 24 April, 2004 - expanded description and function.

The purpose of this offering is only to hide email addresses and links from programs that mine pages for such information. The techniques used here will effectively hide these things from those 'bots.

This is really simple to do. But you must follow some simple rules, and make sure your HTML is clean of any reference to either E-mail, or links into vital areas of your business. Here is how simple it is to do...

What this will not protect you from is some Beavis that decides to "hack" you. In this case you must resort to other techniques. The most common is to have two E-mail addresses - one that is public, and one that you only give out to verified customers. This is not perfect, either, but it delays the bombardment by spammers.

A more complex approach is to have your primary E-mail address hosted by a service such as Yahoo!, and make use of their SpamGuard software. It is actually pretty good, and filters out over 95% of the crap messages you normally get.

One of the new advantages of larger ISPs is that they are filtering out viruses, and "spam" better than you can do it yourself. Smaller ISPs are gonna have to catch up!

View the source of this page, and see what is there. There is nothing for a spam 'bot to harvest! (except for the fake stuff!)

In the JavaScript (JS) there are three functions: One is designed for any FORM that contains a PayPal "business" reference that is called from the onsubmit event handler (EH) of every FORM in your site (FixBusi), one that will correct any link within the FORM (FixLink), aad the last is an EH called from any email link in your site (FixMail). See how I did it in this example.

Installation.

All your "fake" addresses shall be changed to correct addresses when the user selects functions from your site - and not before. And 'bots mining browser cache just get the fake stuff!

This works better than any "encryption" foolishness ever thought of working. Establish a "real" fake email address and you can verify my claim.

Analysis

List out the HTML source, and the JavaScript (JS) to follow along.

First note my three fake references in the HTML...

And notice how the JS changes all of them to the real values of...

And notice the three JS functions that perform the conversion...

To "fix" a link, business ID or email address, include the appropriate call in an Event Handler of the affected item. Notice how this is done in the HTML.

Now, "ron853211" is a valid email reference, and is used to measure effectiveness. Any hits I get there come from mining operations on my site.

In the JS the global data divides my real path names into several parts. The reason for this is so that the real string does not exist in one place - in a single string that can be read by programs.

Remember, this does not slow people down very much, but it stops programs reading pages on the internet from getting valid link and email addresses - it stops them cold!


Picture [blah], [blah].

Input Quantity >      


Contact me concerning this article at email. Mention "spamgard" in your note.

Image: XHTML 1.0 certified! Image: CSS2 certified! Image: Multi-user accessibility!

Individual help starting at $25.00 for simple JS solutions.