Welcome to WebmasterWorld Guest from 3.85.245.126

Forum Moderators: open

Message Too Old, No Replies

Unspiderable Text Links

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

Preferred Member

10+ Year Member

joined:Sept 26, 2002
posts:435
votes: 0


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.
8:55 pm on Dec 9, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:Sept 4, 2002
posts:508
votes: 0


How about
<a href="javascript:location.href='unspiderableLink.html';">Click here if you're not a spider!</a>?
9:04 pm on Dec 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 19, 2003
posts:695
votes: 0


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.

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

Preferred Member

10+ Year Member

joined:Sept 26, 2002
posts:435
votes: 0


thanks for the replies, so on the whole do spiders not follow js links?
9:55 pm on Dec 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 19, 2003
posts:695
votes: 0


I've seen a couple, but not usually.