Welcome to WebmasterWorld Guest from 54.159.246.164

Message Too Old, No Replies

Googlebot Now Executing Javascript?

first time I've ever seen this

   
9:21 pm on Apr 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a site where I have access to my log files and very good web stats. As a backup, on this particular site I use a third party javascript counter on the site (there's javascript code that I put on the page and when a real human with a browser executes that javascript code it records the data).

The thing is, today (in fact about 30 minutes ago), googlebot just visited the site apparently. In other words, "googlebot" just executed javascript. What's also weird is that I think this wasn't someone "acting" like googlebot since there's no web browser or other signs that it was using a browser to view the site.

Is googlebot now executing javascript?

9:23 pm on Apr 28, 2006 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Not actually executing, as far as I know -- but taking javascript as text, and then seeing if something that looks like a url may be in the script.
12:27 am on Apr 29, 2006 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Wouldn't this make sense from G's side to detect more spam or things like

if (Mozilla Gbot) do
something nice
else
show kiddie porn with real estate links that sell viagra
end

:\

1:30 am on Apr 29, 2006 (gmt 0)

WebmasterWorld Senior Member jomaxx is a WebmasterWorld Top Contributor of All Time 10+ Year Member



They have something like that, but there's not much point in identifying themselves as Googlebot when they do so.

I haven't seen Googlebot executing code myself, but I have seen it testing out anything that looks like a URL in my Javascript code -- even if it isn't prefixed "http://".

1:59 am on Apr 29, 2006 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Yes but wouldn't it be easier to detect cloaking to send

gbot and occasionally something else where cloaking is suspected and do a simple text comparison, that actually write a program that analyses what all variations of javascript could possibly do, from the source code.

so after a line if {Gbot) { is found by normal procedures

an extra spamtestbot is send:

So Gbot sees
nice things
spamtestbot
sees
something looking spammy

nice things!= something looking spammy

busted

easier than
analysing gazzilion versions of javascript and what it could possibly do.

Just guessing. :\

1:24 pm on Apr 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're right, it appears that Googlebot is seeing a URL in the javascript code and following it. The script has a URL in it like this:

script src = http :// www.domain. com/ counter/ counter. js

(I added some spaces in there, but you get the point. ;)