{"id":15371356,"url":"https://github.com/sultaniman/allowed_hosts","last_synced_at":"2026-06-04T17:31:01.890Z","repository":{"id":57478831,"uuid":"75554305","full_name":"sultaniman/allowed_hosts","owner":"sultaniman","description":"Elixir plug to protect your APIs from Host header attacks","archived":false,"fork":false,"pushed_at":"2020-02-05T12:33:55.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-13T02:12:12.149Z","etag":null,"topics":["allowedhosts","elixir","header-attack","plug","security"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/sultaniman.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}},"created_at":"2016-12-04T17:58:57.000Z","updated_at":"2021-07-26T15:56:37.000Z","dependencies_parsed_at":"2022-09-17T04:20:45.374Z","dependency_job_id":null,"html_url":"https://github.com/sultaniman/allowed_hosts","commit_stats":null,"previous_names":["imanhodjaev/allowed_hosts"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sultaniman/allowed_hosts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sultaniman%2Fallowed_hosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sultaniman%2Fallowed_hosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sultaniman%2Fallowed_hosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sultaniman%2Fallowed_hosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sultaniman","download_url":"https://codeload.github.com/sultaniman/allowed_hosts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sultaniman%2Fallowed_hosts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33916319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["allowedhosts","elixir","header-attack","plug","security"],"created_at":"2024-10-01T13:46:34.978Z","updated_at":"2026-06-04T17:31:01.862Z","avatar_url":"https://github.com/sultaniman.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AllowedHosts\n\nThis [Elixir](http://elixir-lang.org/) [plug](https://github.com/elixir-lang/plug) protects your resources and APIs from [Host header attack](https://www.acunetix.com/vulnerabilities/web/host-header-attack).\n\n## Installation\n\nTo use the plug in your projects, edit your mix.exs file and add the project as a dependency:\n\n```elixir\ndefp deps do\n  [\n    {:allowed_hosts, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Usage\n\n```elixir\npipeline :browser do\n  plug AllowedHosts, [\"example.com\", \"example2.com\"]\nend\n```\n\n## TODO\n\n* Add more tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsultaniman%2Fallowed_hosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsultaniman%2Fallowed_hosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsultaniman%2Fallowed_hosts/lists"}