https://github.com/nsubhadipta/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.
https://github.com/nsubhadipta/api-guardian-package
api-guardian-package api-security middleware nodejs npm-package
Last synced: 3 months ago
JSON representation
The ultimate VIP bouncer for your API. Only the right user agents and proper requests get in. Everyone else gets a 403.
- Host: GitHub
- URL: https://github.com/nsubhadipta/api-guardian-package
- Owner: nsubhadipta
- License: mit
- Created: 2024-12-10T12:16:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-10T12:30:27.000Z (over 1 year ago)
- Last Synced: 2025-08-06T09:58:15.092Z (10 months ago)
- Topics: api-guardian-package, api-security, middleware, nodejs, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/api-guardian-package
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 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!