1.1.7 • Published 11 months ago

api-guardian-package v1.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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!

1.1.7

11 months ago

1.1.6

11 months ago

1.1.5

11 months ago

1.0.3

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago