Last active
August 29, 2015 14:14
-
-
Save cristianp6/cb40feca4266fa59faed to your computer and use it in GitHub Desktop.
Check URL HTTP headers response like Googlebot agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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