{"id":21451118,"url":"https://github.com/soontao/express-limit-host","last_synced_at":"2026-05-21T07:43:21.609Z","repository":{"id":40277038,"uuid":"335480633","full_name":"Soontao/express-limit-host","owner":"Soontao","description":"simple middleware to protect server from host/x-forwarded-host injection.","archived":false,"fork":false,"pushed_at":"2023-12-15T05:14:26.000Z","size":2063,"stargazers_count":0,"open_issues_count":17,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-15T00:06:32.313Z","etag":null,"topics":["express","proxy","security"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Soontao.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-03T02:10:16.000Z","updated_at":"2021-02-03T05:27:02.000Z","dependencies_parsed_at":"2023-12-15T06:29:02.923Z","dependency_job_id":null,"html_url":"https://github.com/Soontao/express-limit-host","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"038062812b8289f055319318d93175c76f1d0c2c"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":"Soontao/ts-project-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soontao%2Fexpress-limit-host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soontao%2Fexpress-limit-host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soontao%2Fexpress-limit-host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soontao%2Fexpress-limit-host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Soontao","download_url":"https://codeload.github.com/Soontao/express-limit-host/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243963760,"owners_count":20375673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","proxy","security"],"created_at":"2024-11-23T04:18:18.904Z","updated_at":"2026-05-21T07:43:21.576Z","avatar_url":"https://github.com/Soontao.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express limit host\n\n![node-test](https://github.com/Soontao/express-limit-host/workflows/node-test/badge.svg)\n[![codecov](https://codecov.io/gh/Soontao/express-limit-host/branch/main/graph/badge.svg?token=gTDJNGSGcQ)](https://codecov.io/gh/Soontao/express-limit-host)\n![GitHub](https://img.shields.io/github/license/Soontao/express-limit-host)\n[![npm](https://img.shields.io/npm/v/express-limit-host)](https://www.npmjs.com/package/express-limit-host)\n\nsimple middleware to protect server from `host`/`x-forwarded-host` injection.\n\n## Usage\n\n\u003e just install \u0026 use it as an express middleware\n\n\n```ts\nconst createHostLimit = require(\"express-limit-host\")\nconst express = require(\"express\")\n\nconst app = express()\n\napp.use(createHostLimit({\n  loopback: true,\n  allowList: [\n    'proxy-server-host.com', \n    'direct-service-host.com'\n  ],\n  rejectStatusCode: 403\n}))\n\n// add your router/handler\n```\n\n## [CHANGELOG](./CHANGELOG.md)\n\n## [LICENSE](./LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoontao%2Fexpress-limit-host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoontao%2Fexpress-limit-host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoontao%2Fexpress-limit-host/lists"}