Advocacy
Dojo (HowTo)
Reference
Markets
Museum
News
Other
|
From
NetBITS#015/22-Jan-98
Brandon Munday mentioned how he removed all "clickable" mailto links from his Web site to thwart the evil address-collecting spiders. Making a site non-clickable is so counter to the Web's nature that I became convinced there had to be another way. And there is - if you turn to JavaScript for aid. JavaScript is not ubiquitous technology, but this can also work in your favor, because spiders don't speak that language - and most of your human visitors have browsers that do. Here's an example I cooked up in five minutes.
This chunk of code can be pasted into your Web page's HTML at any point. Some old browsers don't support JavaScript, but they won't hit an error - the mail link will simply be invisible (as it is to spiders).
Non-profit, non-commercial publications may reprint articles if full credit is given. Others please contact us. We don't guarantee accuracy of articles. Publication, product, and company names may be registered trademarks. NetBITS ISSN 1096-4908. To subscribe to NetBITS, send email to <[email protected]>. Visit the NetBITS Web site at <http://www.netbits.net/>.
|