Detect search engine crawlers by their User-Agent strings.
Tries to detect if a request is coming from a machine or a person using a
regular expression. Bot and browser
User-Agent strings sourced from
$ npm install funnelweb
Funnelweb just takes a user agent string and returns "true" if it's probably a bot, or "false" otherwise.
var funnelweb =// true// false
If you pass it an HTTP request object, it'll read the User-Agent header and do the same:
var funnelweb =http =http