Forum Moderators: open
If there were an HTML tag or attribute to do this (and there isn't), it would only be obeyed by spiders that obeyed the standard, and email address farming bots are not that well behaved.
So if your js breaks the parts you don't want seen into a few variables, and then the document.write() statement concatenates those variables into the full character string - I think that would do it.
If you want to disallow bots from accessing certain parts of your server, there's at least 2 methods:
robots.txt and the link attribute rel="nofollow".
<a href="/" rel="nofollow">home</a> A much more effective way to prevent bots fom accessing certain areas, is to use robots.txt.
While most bots will obey robots.txt, spambots will most likely not. There are ways to fight those that don't though. For instance, you could have a 1x1 px transparent image link to a page that generates random fake email adresses, and put that location in the robots.txt as "disallow". This way, regular bots won't index it, while any bots that don't follow the robots.txt will.
I have an entire section for bots that don't follow robots.txt on my site. 13 pages that generates 1000 fake email adresses each, and they all link to each other. Hopefully, this will teach bot-makers to obey robots.txt.
But robots.txt works only for entire documents, not parts of text as is what you seek.
iframe is a tag in HTML that allows an inline frame to be loaded into a page.
In other words, you can make a "window pane" in one page that shows another.
Amazon uses iframe in their code generator for their affiliates.
Here's the W3 entry on it:
[w3.org...]