{"id":15680870,"url":"https://github.com/crazy-max/echo-ipfilter","last_synced_at":"2025-09-02T14:44:31.332Z","repository":{"id":35417369,"uuid":"208521177","full_name":"crazy-max/echo-ipfilter","owner":"crazy-max","description":"Middleware that provides ipfilter support for echo framework","archived":false,"fork":false,"pushed_at":"2024-06-02T07:27:16.000Z","size":177,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T07:32:17.037Z","etag":null,"topics":["echo","echo-framework","golang","ipfilter","middleware"],"latest_commit_sha":null,"homepage":"","language":"Go","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/crazy-max.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"crazy-max","custom":"https://www.paypal.me/crazyws"}},"created_at":"2019-09-15T00:32:11.000Z","updated_at":"2024-07-05T20:23:30.000Z","dependencies_parsed_at":"2024-06-02T08:36:21.340Z","dependency_job_id":"73b230a3-0df0-46b8-91c7-5a8a83460b6f","html_url":"https://github.com/crazy-max/echo-ipfilter","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fecho-ipfilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fecho-ipfilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fecho-ipfilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazy-max%2Fecho-ipfilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazy-max","download_url":"https://codeload.github.com/crazy-max/echo-ipfilter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252804790,"owners_count":21806878,"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":["echo","echo-framework","golang","ipfilter","middleware"],"created_at":"2024-10-03T16:45:22.751Z","updated_at":"2025-05-07T03:21:52.393Z","avatar_url":"https://github.com/crazy-max.png","language":"Go","funding_links":["https://github.com/sponsors/crazy-max","https://www.paypal.me/crazyws"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg width=\"156\" src=\"https://raw.githubusercontent.com/crazy-max/echo-ipfilter/master/.github/echo-ipfilter.png\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/crazy-max/echo-ipfilter/actions?workflow=test\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/crazy-max/echo-ipfilter/test.yml?label=test\u0026logo=github\u0026style=flat-square\" alt=\"Test workflow\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/crazy-max/echo-ipfilter\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/crazy-max/echo-ipfilter?style=flat-square\" alt=\"Go Report\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/crazy-max/echo-ipfilter\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/github/crazy-max/echo-ipfilter?logo=codecov\u0026style=flat-square\" alt=\"Codecov\"\u003e\u003c/a\u003e\n  \u003cbr /\u003e\u003ca href=\"https://github.com/sponsors/crazy-max\"\u003e\u003cimg src=\"https://img.shields.io/badge/sponsor-crazy--max-181717.svg?logo=github\u0026style=flat-square\" alt=\"Become a sponsor\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.paypal.me/crazyws\"\u003e\u003cimg src=\"https://img.shields.io/badge/donate-paypal-00457c.svg?logo=paypal\u0026style=flat-square\" alt=\"Donate Paypal\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## About\n\nMiddleware that provides ipfilter support for [echo](https://echo.labstack.com) framework backed by [jpillora/ipfilter](https://github.com/jpillora/ipfilter).\n\n## Installation\n\n```\ngo get github.com/crazy-max/echo-ipfilter\n```\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"net/http\"\n\n\tipfilter \"github.com/crazy-max/echo-ipfilter\"\n\t\"github.com/labstack/echo/v4\"\n\t\"github.com/labstack/echo/v4/middleware\"\n)\n\nfunc main() {\n\te := echo.New()\n\n\te.Use(ipfilter.MiddlewareWithConfig(ipfilter.Config{\n\t\tSkipper: middleware.DefaultSkipper,\n\t\tWhiteList: []string{\n\t\t\t\"10.1.1.0/24\",\n\t\t\t\"10.1.2.0/24\",\n\t\t},\n\t\tBlockByDefault: true,\n\t}))\n\n\te.GET(\"/\", func(c echo.Context) error {\n\t\treturn c.String(http.StatusOK, \"Hello, World!\\n\")\n\t})\n\n\te.Logger.Fatal(e.Start(\":1323\"))\n}\n```\n\n## Contributing\n\nWant to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You\ncan also support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max) or by making\na [Paypal donation](https://www.paypal.me/crazyws) to ensure this journey continues indefinitely!\n\nThanks again for your support, it is much appreciated! :pray:\n\n## License\n\nMIT. See `LICENSE` for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fecho-ipfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazy-max%2Fecho-ipfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazy-max%2Fecho-ipfilter/lists"}