The last week I have about 500.000 hits/day from googlebot in one of my websites. As a result, the server has serious issues to handle the rest of the requests.
What I have done
- Verified that it is a googlebot
All the IPs are in the format of 66.249.64.xxx. I followed what Google suggests and verified that it is official.
host 66.249.64.155
155.64.249.66.in-addr.arpa domain name pointer crawl-66-249-64-155.googlebot.com
host crawl-66-249-64-155.googlebot.com
crawl-66-249-64-155.googlebot.com has address 66.249.64.155
- Reduce the crawl rate in the Google Search Console
Changed the "Limit Google's maximum crawl rate" to
0.01 requests per second
100 seconds between requests
- Add a block on robots.txt
User-agent: Googlebot
Disallow: /
- Add an .htaccess rule
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^googlebot
RewriteRule ^(.*)$ http://google.com/
I also found a page in Google that shows the Crawl Stats for the last 90 days. As I can see, it doesn't have any recent activity. When the last was on February (again with a high number of hits)
My last finding is the pages that crawl are from the shop part with all the different filters in the parameters like categories, tags and sorting. I am clearly out of ideas and Google Search helped as much as it could.
- Exclude parameters from the Search Console tool https://www.google.com/webmasters/tools/crawl-url-parameters
I did this today, so it might need a couple of days for Google to apply it. I excluded the parameters, min_price
, max_price
, filter_size
, filter_color
, filter_brand
, filter_type
and orderby
.
This is an example of the URL that GoogleBot hits
https://www.example.com/product-category/woman/?filter_size=36&query_type_size=or&min_price=0&max_price=30
Disallow: /
rule for Googlebot will remove most of your site from Google search within a couple weeks.