Forum Moderators: open

Message Too Old, No Replies

Unspiderable Text Links

         

subway

4:24 pm on Dec 9, 2003 (gmt 0)

10+ Year Member



Being pretty much a novice with JS, I would appreciate it if someone would explain how to create a text link with JS that is totally "unspiderable" as in I don't want the link getting followed and the page getting indexed. Thanks.

garann

8:55 pm on Dec 9, 2003 (gmt 0)

10+ Year Member



How about
<a href="javascript:location.href='unspiderableLink.html';">Click here if you're not a spider!</a>?

jim_w

9:04 pm on Dec 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can also put the js into a js file and call it like…

<SCRIPT src="myscript.js" LANGUAGE="javascript" type='text/javascript'>
</SCRIPT>

And be sure put the pages you don’t want indexed into robots.txt with a disallow. This will keep friendly bots from indexing them.

subway

9:51 pm on Dec 9, 2003 (gmt 0)

10+ Year Member



thanks for the replies, so on the whole do spiders not follow js links?

jim_w

9:55 pm on Dec 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've seen a couple, but not usually.