Thumbtack Engineering

Googlebot makes POST requests via AJAX

Googlebot is constantly evolving to better capture the web's content. Over the past few years we've seen Googlebot submit GET forms and execute JavaScript. But we've always taken it for granted that Googlebot would never execute a POST request, [nor would any other well-behaved web crawler][].

We were wrong about that. Recently, we started observing Googlebot making POST requests to As far as we can tell, such requests have not been openly observed before. These Apache access log excerpts show a few examples: - - [04/Sep/2011:04:53:52 +0000] "POST /act/site/clienterror HTTP/1.1" 200 36 "" "Mozilla/5.0 (compatible; Googlebot/2.1; +" - - [25/Sep/2011:04:27:50 +0000] "POST /act/site/clienterror HTTP/1.1" 200 36 "" "Mozilla/5.0 (compatible; Googlebot/2.1; +" - - [04/Oct/2011:09:53:08 +0000] "POST /act/site/clienterror HTTP/1.1" 200 36 "" "Mozilla/5.0 (compatible; Googlebot/2.1; +"

We've verfied the requests are coming from real Google crawler IP addresses:

$ dig -x +short
$ dig +short

The source of the requests is our client-side JavaScript error tracking code, which installs a global JavaScript error handler and attempts to POST to our server when unhandled errors are detected on the client. The requests from Googlebot include traceback information, so it appears the code was genuinely executed and not simply parsed to extract links.

Now, this isn't necessarily harmful behavior. In discussing request safety, RFC 2616 sec. 9.1.1 states:

The important distinction here is that the user did not request the side-effects, so therefore cannot be held accountable for them.

In this case, the JavaScript code makes an unprompted POST request upon page load, not resulting from any user action. One might say that the request fits the above definition and is therefore safe, regardless of the request method. We conclude simply that this is a interesting new feature of Googlebot and one that webmasters should be aware of.