Forum Moderators: phranque

Message Too Old, No Replies

Could my javascript attract a penaly from Google?

Could a SE think my site is up to tricks?

         

kapow

5:48 pm on Mar 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have put a link on my site to our customers site so our visitors can use the link. Our customer does not want to appear in any search engines. I have used a java script to make the link harder for bots of any kind to follow (copied below).

Could a javascript like this attract a penaly on my page from Google or other significant search engines?
I have a robots.txt, and one day I will try to understand that vast WebmasterWorld thread on banning.


My java script:
<script language=javascript>
<!--
var bitone = "so";
var bittwo = "andso";
var bitthree = ".com";
document.write("<a href='http://www." + bitone + bittwo + bitthree + " 'target='_blank'>So And So</a>")
//-->
</script>

digitalv

6:00 pm on Mar 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It shouldn't cause a penalty because Google doesn't know how to read it, and it will prevent them from being spidered as a result of your link, but WON'T prevent them from being indexed.

If anyone visits the site running the Google toolbar, the site will eventually be spidered by Google on its own, having nothing to do with your link unless they specify in a robots.txt that they don't want ANYTHING indexed.

If they have a working robots file to make sure they're not indexed, then you can just give them a regular link - no need to hide it in Javascript.

kapow

6:22 pm on Mar 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have this in my robots.txt

User-agent: *
Disallow: /

I trust Google with a robots.txt. Its those desperate and rubbish SEs that spider without respecting robots.txt that I want to prevent.

Thats why I have the javascript link. However I have heard Google is careful about javascript because there are tricksters who use javascript to hide redirects etc.