UNPKG

host-validation

Version:

Node.js middleware to validate Host and Referer headers in HTTP requests and protect against DNS rebinding attacks.

39 lines (38 loc) 1.17 kB
{ "name": "host-validation", "version": "2.0.1", "description": "Node.js middleware to validate Host and Referer headers in HTTP requests and protect against DNS rebinding attacks.", "main": "index.js", "scripts": { "test": "node test.js", "coverage": "nyc --reporter=html --reporter=text node test.js && rm -rf .nyc_output/", "coveralls": "istanbul cover test.js -x test.js --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" }, "repository": { "type": "git", "url": "git+https://github.com/brannondorsey/host-validation.git" }, "keywords": [ "express", "middleware", "headers", "host", "header", "dns", "rebind", "validation" ], "author": "Brannon Dorsey <brannon@brannondorsey.com>", "license": "MIT", "bugs": { "url": "https://github.com/brannondorsey/host-validation/issues" }, "homepage": "https://github.com/brannondorsey/host-validation#readme", "devDependencies": { "coveralls": "^3.0.2", "express": "^4.16.3", "istanbul": "^0.4.5", "nyc": "^13.0.1", "request": "^2.85.0" } }