Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-is-googlecrawler

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-is-googlecrawler - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

index.js

14

package.json
{
"name": "express-is-googlecrawler",
"version": "1.0.0",
"version": "1.0.1",
"description": "Express middleware that informs if request originates from a Google Bot or a Google Crawler",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "standard && mocha"
},

@@ -23,3 +23,11 @@ "repository": {

},
"homepage": "https://github.com/jfoclpf/express-is-googlecrawler#readme"
"homepage": "https://github.com/jfoclpf/express-is-googlecrawler#readme",
"dependencies": {
"axios": "^1.7.2"
},
"devDependencies": {
"expect.js": "^0.3.1",
"mocha": "^10.4.0",
"standard": "^17.1.0"
}
}
# express-is-googlecrawler
Very fast Express middleware that informs if request originates from a Googlebot.
Very fast Express middleware that informs if request originates from a Google Bot or a Google Crawler.
Instead of making a new DNS request for every incoming request, it stores in-memory all [IP ranges coming from Google bots and crawlers](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot), for very fast middleware processing.
Instead of making a new DNS request for every incoming request, it stores in-memory all known [IP ranges coming from Google bots and crawlers](https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot), for very fast middleware processing.

@@ -13,3 +13,17 @@ ## Install

## Usage
```js
const express = require('express')
const expressIsGoogleCrawler = require('express-is-googlecrawler')
const app = express()
app.use(expressIsGoogleCrawler)
app.get('/', (req, res) => {
res.send(res.locals.isGoogleCrawler) // Boolean
})
app.listen(3000)
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc