Skip to content

Instantly share code, notes, and snippets.

@cristianp6
Last active August 29, 2015 14:14
Show Gist options
  • Save cristianp6/cb40feca4266fa59faed to your computer and use it in GitHub Desktop.
Save cristianp6/cb40feca4266fa59faed to your computer and use it in GitHub Desktop.
Check URL HTTP headers response like Googlebot agent
# Detailed answer
curl -s -A "Googlebot/2.1 (+http://www.google.com/bot.html)" -D - YOUR_URL -o /dev/null
# Short answer
curl -sL -A "Googlebot/2.1 (+http://www.google.com/bot.html)" -w "%{http_code} %{url_effective}\\n" "YOUR_URL" -o /dev/null
# Other crawlers: http://www.useragentstring.com/pages/Crawlerlist/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment