New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

api-guardian-package

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-guardian-package

The ultimate VIP bouncer for your API. Only the right user agents and proper requests get in. Everyone else gets a 403.

  • 1.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

API Guardian Package

The ultimate VIP bouncer for your API. Only the right user agents and proper requests get in. Everyone else gets a 403.

req.header('x-access-bypass')

Installation

Installing API Guardian Package

npm install api-guardian-package

Basic Setup

const express = require('express');
const blockUserAgents = require('api-guardian-package');

const app = express();

app.use(blockUserAgents({
  bypassKey: 'your-bypass-key'  // Optional: Provide a bypass key for special cases
  token:"your-token" // Optional: For Block browser access
}));


app.get('/api/your-endpoint', (req, res) => {
  res.send('Welcome to the VIP section!');
});

app.listen(3000, () => {
  console.log('API running on http://localhost:3000');
});

Conclusion

API Guardian Package provides top-notch security for your endpoints, ensuring that only VIP requests get through!

Keywords

FAQs

Package last updated on 10 Dec 2024

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

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