Simple middleware to remove or spoof the X-Powered-By HTTP header. Version 1.1.0 is stable with minimal maintenance. Part of the Helmet.js security middleware family. Differentiates from alternatives by allowing custom header values to mislead attackers. Removing X-Powered-By only obfuscates the framework and is not a strong security measure.
npm install hide-powered-byVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to use hide-powered-by middleware with Express to remove or spoof the X-Powered-By header.
Consider additional security headers like Helmet's other middleware.
Use app.disable('x-powered-by') for Express apps.If you want to remove the header entirely, ensure your framework supports removing headers.
npm install hide-powered-by
Change import to `import hidePoweredBy from 'hide-powered-by'` or `const hidePoweredBy = require('hide-powered-by')`Use typed options: `import type { HidePoweredByOptions } from 'hide-powered-by'` and pass options as `HidePoweredByOptions`.No dependency data recorded yet.