Package
host-validation
Node.js middleware to validate Host and Referer headers in HTTP requests and protect against DNS rebinding attacks.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 5.9k
- -32% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 7 years ago
- v2.0.1
- GitHub stars
- 194
- 15 forks
- Open issues / PRs
- 3 / 1
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
5,937 downloads last week, 23,359 in the last month. The 12-month change of -32% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 2.0.1, 28 Oct 20187 years ago
- First published
- -
- Last push to GitHub
- 19 Sept 20221,466 days before the snapshot
- Repository archived
- No
- Open issues
- 3
- Open pull requests
- 1
- Commits, last 52 weeks
- 0
- Dependents on npm
- 7
Major versions
-
Recent releases
-
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 35 kB
- Dependencies (0)
- None
npm install host-validation- jsDelivr
https://cdn.jsdelivr.net/npm/host-validation@2.0.1/ - unpkg
https://unpkg.com/host-validation@2.0.1/ - esm.sh
https://esm.sh/host-validation@2.0.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| celebrate | 61.5k | - | 29 days ago | ESM only | - |
| express-joi-validation | 16.6k | - | 1 year ago | CommonJS | - |
| express-zod-safe | 10k | - | 5 months ago | ESM + CommonJS | - |
| express-validator | 1.1m | - | 5 months ago | CommonJS | - |
| express-json-validator-middleware | 12.8k | - | 5 months ago | CommonJS | - |
| express-zod-api | 12.8k | - | 2 days ago | ESM only | - |
| express-validation | 47.9k | - | 2 years ago | CommonJS | - |
| superstruct | 4.7m | - | 2 years ago | ESM + CommonJS | - |
Indexability: Not indexed (discovery only): downloads_week 5937 < 10000.