New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

node-isbot

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-isbot

isbot for nodejs, Contains most of the world's bot or spider

Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
39
Maintainers
1
Weekly downloads
 
Created
Source

node-isbot

npm version

install

npm install node-isbot --save

usage

const isbot = require('node-isbot');
isbot(req.headers['user-agent'])

isbot("Googlebot/2.1 (+http://www.google.com/bot.html)") // true
isbot("Googlebot") // true
isbot("yahoo") // true
isbot("Sogou Pic Spider") // true
isbot("PHP") // true
isbot("Baiduspider") // true
isbot("360Spider") // true
isbot("java/") // true

isbot("Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36") // false

Keywords

bot

FAQs

Package last updated on 15 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts