问题
Does google follow buttons and form inputs when crawling websites? I'm adding rel="nofollow" tags to links I don't want google to follow but I'm not sure if I need to add them to buttons.
For example an 'add to cart' button.
Thanks
回答1:
Generally, no. Especially not POST-based forms; POST may have side-effects per the RFC, while GET is defined as a "safe" method. Google is experimenting with some "deep web" spidering, however, so it's possible that they may request GET-based forms -- but this isn't yet commonplace, as far as I know.
But according to the standards, spiders should not POST.
In fact, the original announcement from google states that they only follow GET-based forms.
回答2:
Your "add to cart" button should either POST a form, or execute JavaScript. Google won't do either of those two things.
回答3:
hi bots don't submit post requests of any kind.
google does follow rel=nofollow links, it just doesn't assume that you are 'vouching' for the content to which they link
来源:https://stackoverflow.com/questions/2038228/does-google-follow-buttons-inputs