{"id":13582131,"url":"https://github.com/kvncrw/denyip","last_synced_at":"2026-01-12T01:45:18.235Z","repository":{"id":57536588,"uuid":"283264177","full_name":"kvncrw/denyip","owner":"kvncrw","description":"Traefik Middleware Plugin - Deny Requests based on IP","archived":false,"fork":false,"pushed_at":"2025-06-12T14:11:14.000Z","size":156,"stargazers_count":45,"open_issues_count":6,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-02T07:02:56.651Z","etag":null,"topics":["traefik-plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kvncrw.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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":"2020-07-28T16:11:43.000Z","updated_at":"2025-08-12T08:24:46.000Z","dependencies_parsed_at":"2025-04-06T13:35:53.277Z","dependency_job_id":null,"html_url":"https://github.com/kvncrw/denyip","commit_stats":null,"previous_names":["notsureifkevin/denyip","kvncrw/denyip","kevtainer/denyip"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kvncrw/denyip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvncrw%2Fdenyip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvncrw%2Fdenyip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvncrw%2Fdenyip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvncrw%2Fdenyip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kvncrw","download_url":"https://codeload.github.com/kvncrw/denyip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvncrw%2Fdenyip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["traefik-plugin"],"created_at":"2024-08-01T15:02:26.630Z","updated_at":"2026-01-12T01:45:18.223Z","avatar_url":"https://github.com/kvncrw.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# DenyIP\n\nDenyIP is a middleware plugin for [Traefik](https://github.com/traefik/traefik) which accepts IP addresses or IP address ranges and blocks requests originating from those IPs. Supports both IPv4 and IPv6 addresses.\n\n## Configuration\n\n### Static\n\nIn the example below `fowardedHeaders.insecure` is enabled in order to allow the IP address to be available from proxied requests. In a production environment, you may want to consider using [`forwardedHeaders.trustedIPs`](https://docs.traefik.io/routing/entrypoints/#forwarded-headers)\n\n```yaml\nexperimental:\n  pilot:\n    token: \"xxxxx\"\n  plugins:\n    denyip:\n      modulename = \"github.com/kvncrw/denyip\"\n      version = \"v2.0.0\"\n\nentryPoints:\n  http:\n    address: \":80\"\n    forwardedHeaders:\n      insecure: true\n```\n\n### Dynamic\n\nTo configure the `DenyIP` plugin you should create a [middleware](https://docs.traefik.io/middlewares/overview/) in your dynamic configuration as explained [here](https://docs.traefik.io/middlewares/overview/). The following example creates and uses the `denyip` middleware plugin to deny all requests originating from the configured `ipDenyList` array. `ipDenyList` will accept:\n- IPv4 addresses (e.g., `127.0.0.1`)\n- IPv4 CIDR ranges (e.g., `192.168.0.0/24`)\n- IPv6 addresses (e.g., `2001:db8::1`)\n- IPv6 CIDR ranges (e.g., `2001:db8::/32`)\n\n\u003e Note: Providing invalid ip addresses or ranges in `ipDenyList` will cause an error and the plugin will not load.\n\n```yaml\nhttp:\n  # Add the router\n  routers:\n    my-router:\n      entryPoints:\n      - http\n      middlewares:\n      - denyip\n      service: service-foo\n      rule: Path(`/foo`)\n\n  # Add the middleware\n  middlewares:\n    denyip:\n      plugin:\n        ipDenyList:\n          # IPv4 examples\n          - 24.0.0.0/12\n          - 127.0.0.1\n          # IPv6 examples\n          - 2001:db8::/32\n          - 2001:db8::1\n          # ... rest of your deny list ...\n\n  # Add the service\n  services:\n    service-foo:\n      loadBalancer:\n        servers:\n        - url: http://localhost:5000/\n        passHostHeader: false\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvncrw%2Fdenyip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkvncrw%2Fdenyip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvncrw%2Fdenyip/lists"}