Ciaran wrote on 28 jul 2007 in comp.lang.javascript
:
Quote:
>
"Evertjan." <exjxw.hannivoort@interxnl.netwrote in message
news:Xns997BB67329118eejj99@194.109.133.242...
Quote:
>Ciaran wrote on 28 jul 2007 in comp.lang.javascript
:
>>
Quote:
>>I have a piece of code that I'd rather google's spider did not follow.
>>Is this possible please?
>>
>Only link URLs are "FOLLOWED", code is not.
>>
>Or do you want it not to be "INDEXED"?
>>
><http://www.google.com/support/webmasters>
>>
>Not really on topic for javascript, meseems.
>
Sorry, you're right. I have a bit of javascript code that I dont want to
google to index. Is there a Javascript method to hide this code from the
crawler?
No, not with clientside javascript.
You could test for the word "googlebot" with serverside jscriptin
Request.ServerVariables("HTTP_USER_AGENT"),
but I doubt Google will ever visit your site, if they find out.
Anyhow, why would you want to do that?
Is your scripting so unique and valuable,
that anyone would be interested?
If so, use serverside techniques, which codes are hidden by default.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)