Simple javascript content hiding

Try this if you have something to hide from crawlers



Simply write your text or HTML code here, the javascript commands will be created below. The 'encryption' is not really encryption, but it does keep all content unindexable by crawlers who do not interpret javascript (just about none of them do). You can even copy + paste javascript here (eg. ). It also does a great job of keeping your email-address private (though the spammers will usually get it some other way). Keep in mind that not all browsers have javascript enabled. This encoder also requires javascript :-). More ramblings about this script below.

Standard disclaimer: Test it out yourself before you use it :-). Things can go wrong, errors are a part of life with software.

Input: (or click here to encode an email link)

Option:

Output:


Note: this opens the demo as a popup - if your browser is blocking popups, you might not see it. In that case, click on the button above and then click this link.


Some questions and ramblings about encoding content with javascript

Why did I put this online?
One reason is to have a quick and simple way to hide your email address from spam crawlers. No, I do not collect email addresses this way; the encoder runs in your browser (except for the demo) and I cannot see what you are encoding.
Another reason (perhaps the main one) is to provide a quick and simple way to hide content from search engines. Sometimes it makes sense to keep something visible on a page, but not indexable for search engines. Sometimes search engines will assume something about your page or site, because of the content found.
By encoding these things in a simple javascript code snippet, the search engines won't be able to index it or recognize it at all.

How do you use it?
Simply copy + paste the code from your existing HTML code (pages) into the input box, and copy + paste the code generated in the Output-Box into your HTML code, replacing the old code. Nothing fancy. Try the demo to see what the code could look like.
You could also put the generated code into an external javascript file (left as an exercise for the reader), but that's usually not even needed. The external javascript file could also be "protected" by the robots.txt (or more if you are really paranoid). I doubt it really makes sense though, since you're showing the content online anyway.

The email encoder XYZ is better!
My experience with email encoding on websites has been that if you have an email address that you give out to people, it will end up being spammed anyway. All it takes is one user with your email address in the cache, address-book or previous mails, an email harvesting virus and soon your address will be known. My advice: use simple (manageable) encoding and invest more time in a good spam-filter (I use and recommend gmail and spamassassin-based tools).

What about those non-javascript things?
Yep, browsers with javascript turned off won't be able to process the generated code, they will not display anything. In my experience (and server logs) the vast majority has javascript turned on. Additionally, there are some browsers that can't display javascript at all: some cell phones, PDAs, page-readers (for the seeing impaired), etc. If you have a significant user group with these browsers, you need to test the output carefully.

For everyone else: test it anyway before you put it online :-). I cannot be held responsible for any problems you have when using the generated output. I cannot guarantee that search engines will not ever index the content hidden in this way, nor can I guarantee that search engines will like it :-).