bowser icon indicating copy to clipboard operation
bowser copied to clipboard

Build in recognition of search bot user agents

Open davideanderson opened this issue 10 years ago • 4 comments

Feature Suggestion: It seems that it would be relatively common use case to desire to know if the agent is a search bot, so building in the user agents for common search bots seems like a reasonable feature.

Google: https://support.google.com/webmasters/answer/1061943?hl=en Bing: https://www.bing.com/webmaster/help/which-crawlers-does-bing-use-8c184ec0

davideanderson avatar Nov 13 '15 23:11 davideanderson

It's ok. Could you prepare a PR?

lancedikson avatar May 06 '16 20:05 lancedikson

@lancedikson hope this helps

Majestic-12 Web Crawler:

/mj12bot|majestic12/i

Google bots (matches the all from https://support.google.com/webmasters/answer/1061943?hl=en):

/(mediapartners|apis|adsbot)?[ -]?\(?google(bot)?/i

Bing bots (mathes the all from https://www.bing.com/webmaster/help/which-crawlers-does-bing-use-8c184ec0):

/msn|adidx|bing(bot|preview)/i

Chinese search engine Baidu crawlers:

/baiduspider/i

Chinese search engine Sogou crawlers:

/sogou/i

everget avatar Oct 23 '17 17:10 everget

DuckDuckGo

Mozilla/5.0 (compatible; DuckDuckBot-Https/1.1; https://duckduckgo.com/duckduckbot)

daniel-nagy avatar Nov 12 '18 00:11 daniel-nagy

I found this list with all user agent crawlers

http://www.user-agents.org/

gurodrigues avatar Apr 17 '19 15:04 gurodrigues