BingBots or MSNBots Over-crawling to Bring the Site Down?

BingBots or MSNBots Over-crawling?

There are instances when bots from Bing or MSN are overcrawling the website crippling the website to be too very slow or even cause it to do down.

bing-site-connection-timed-out

What generally happens?
Microsoft Bing web crawlers sometimes get “out of control crawling mode” causing websites to go down. (Why? Ask Microsoft. I have not heard a good explanation on why this even happens however I’ve witnessed this on pretty large websites.)

How to fix BingBot OverCrawling by controlling Crawl Rate?

Typically, web admins or database admins will notice notice that an application is generating lots of select queries taking 600 sec to 1500 sec which are logged into the database query logs. Upon further investigation, the source IPs of those queries can be identified as web servers – such as 188 207.46.13.130, or 143 157.55.39.198 etc. There are 100s of such Microsoft IPs (could be even thousands), which are mainly bots.

  1. Kill those resource intensive processes. It’s not unlikely if there were 500-1,000 queries / connections from such IPs. This rogue behavior is causing havoc on the web-server and the database server.
  2. Next, using Firewall (there are alternative ways to this.), block those known IPs. What can be even more annoying is there could be more of such IPs not intially visible. Note, Micorsoft uses multiple bots to crawl a website. This is a temporary step and we’ll come back to this later when the site is running again.
  3. Once the resource eating processes stopped, and rogue bots blocked, the website should be back via server reboot.
  4. Now, the site is back up, it’s time to log on to the Bing Webmaster Tools.
  5. First of, we need to verify the the rogue IPs are really from Microsoft.
    1. Go to “Diagnostics & Tools” > “Verify Bingbot”, and enter the offending IP addresses one by one.
    2. e.g. 188 207.46.13.130 – Microsoft Corporation (MSFT) or 143 157.55.39.198 or 139 207.46.13.6
    3. Once these are verified as Bingbot IP addresses, we can confirm that these are registered as Bot-Name “msnbot-207-46-13-130.search.msn.com” and further steps can be taken.
  6. Now, we’re ready to control the Crawl-Rate of BingBots
    1. Next, navigate to “Configure My Site” > “Crawl Control” within the Bing Webmaster Tools.
    2. The default view is “All Day” as shown below. Figure: Default View
    3. We need to update it to Custom view, where we can control and define the crawl rate. Figure: Custom view
  7. Additional steps can be taken in Robots.txt by adding Crawl Delay
    1. Below 2 lines will tell bots to crawl a page every 5 sec only. This helps if the website has bandwidth constraints. However, this also reduces the total crawl and may result in less content being indexed.
    2. User-agent: msnbot
      Crawl-delay: 5
    3. This is advanced feature, where bots are instructed to crawl a page only every 5 sec.
  8. Finally, it’s time to come back to the Firewall and whitelist the IPs, otherwise Bing will received HTTP = 400-499 errors as it would be unable to crawl the website.

Figures: Before (default crawl) vs After (Custom Crawl)

Bing-Bot-Default-Crawl-Setting_WebmasterTools

BingBot Default Crawl-Setting in Bing Webmaster Tools

Bing-Bot-Crawl-Setting_WebmasterTools

BingBot Crawl CUSTOM Setting Webmaster Tools

 

 

Conclusion

No one knows for sure why Bing Bots sometime acts the rogue way they do – that is to excessively crawl the sites to the point of bringing them down. Microsoft Engineers need to answer this as well as why they use multiple IPs to crawl the same website at the same time. Anyhow, for websmasters and web admins BingBots over-crawling causes serious headache from Bandwidth consumption, to traffic loss, and revenue loss as the site may go down. Solution presented here is in controlling the BingBots behavior via Bing Webmaster Tools and robots.txt directive.

 

About Ujjwal Bhattarai

Ujjwal is an engineer by education, a programmer by hobby, and an internet marketer by choice. Other than 1 minute chess, and biking, his passion includes SEO, SEM/PPC, CRO, and Web Development. As a lifelong student of Internet Development, he is hopelessly addicted to Internet, and sincerely believes after fire, wheel, and decimal point, internet is the fourth most important invention in the human history. Catch up with him on Twitter at @uj2wal or at his Google+ .

Leave a Reply

67,976 Spam Comments Blocked so far by Spam Free Wordpress

HTML tags are not allowed.