https://github.com/v-core9/x-powered-by-random
Node/Express module that will set X-Powered-By Header to some random value just to mess with people.
https://github.com/v-core9/x-powered-by-random
Last synced: 3 months ago
JSON representation
Node/Express module that will set X-Powered-By Header to some random value just to mess with people.
- Host: GitHub
- URL: https://github.com/v-core9/x-powered-by-random
- Owner: V-core9
- License: unlicense
- Created: 2022-03-04T16:00:48.000Z (about 3 years ago)
- Default Branch: main_index
- Last Pushed: 2024-01-27T18:29:11.000Z (over 1 year ago)
- Last Synced: 2025-01-17T15:16:38.140Z (4 months ago)
- Language: JavaScript
- Size: 266 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# X-Powered-By Random
Middleware for express that will produce random value for x-powered-by header.
## Installing
```sh
npm i x-powered-by-random -save
```# Using
```js
const { syncXPBR } = require('x-powered-by-random')
// or
// import { asyncXPBR, syncXPBR } from 'x-powered-by-random'const app = require('express')()
app.use(syncXPBR) // or app.use(asyncXPBR)
```# Additional info
There are also available two functions that will return random value for x-powered-by header, and a list of all possible values.
```js
const { xpbRandomSync, xpbRandom, xPowerList } = require('x-powered-by-random')
// or
// import { xpbRandomSync, xpbRandom } from 'x-powered-by-random'console.log(xpbRandomSync())
console.log(await xpbRandom())
console.log(xPowerList)
```>### ⚠ NOTE
>
> If you are using Helmet middleware you should put it afterwards because otherwise it might get overwritten/removed by the helmet/other middleware.