Fetch a page as Googlebot and compare with a normal request
fetch page as googlebot curl | does google see a different page | check for cloaking | is googlebot being blocked | curl | googlebot | user-agent | cloaking | seofor ua in 'Mozilla/5.0 (X11; Linux x86_64)' 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'; do curl -s -o /dev/null -A "$ua" -w "%{http_code} %{size_download} Bytes $ua\n" https://example.com/; doneCompares two requests that differ only in the user agent. A different status code or a very different size points to bot blocking (WAF, Fail2ban, security plugins), hacked sites serving spam only to Google, or faulty caching rules.
Note: Small size differences due to nonces or timestamps are normal. diff <(curl -s URL) <(curl -s -A 'Googlebot' URL) compares the content in detail.
Also searched as
- fetch page as googlebot curl
- does google see a different page
- check for cloaking
- is googlebot being blocked