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.


Posted

in

by

Tags:

Comments

One response to “Does GoogleBot run JavaScript?”

  1. Jevon Avatar
    Jevon

    Use robots.txt 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *