Tuesday, January 24, 2006

Does GoogleBot run JavaScript?

Yes, Googlebot does execute JavaScript code. I have an AJAX vote form with Yes/No links. The links are in AJAX form. Something like this: href="javascript:vote('Yes');" and the database records these votes. I got many votes from GoogleBot. Its User-Agent string is like this: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html). Now it's annoying since I do not want the bot to vote.

1 Comments:

At 8:05 PM, Anonymous Jevon said...

Use robots.txt :)

 

Post a Comment

<< Home