{"id":13582129,"url":"https://github.com/traefik/plugin-blockpath","last_synced_at":"2025-05-07T05:46:20.076Z","repository":{"id":42598024,"uuid":"277751204","full_name":"traefik/plugin-blockpath","owner":"traefik","description":"Block Path is a middleware plugin for Traefik which sends an HTTP 403 Forbidden response when the requested HTTP path matches one the configured regular expressions","archived":false,"fork":false,"pushed_at":"2022-03-31T00:38:54.000Z","size":23,"stargazers_count":20,"open_issues_count":2,"forks_count":14,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-19T19:05:19.673Z","etag":null,"topics":["traefik","traefik-plugin"],"latest_commit_sha":null,"homepage":"https://plugins.traefik.io/plugins/62947354108ecc83915d778e/block-path","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/traefik.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}},"created_at":"2020-07-07T07:45:44.000Z","updated_at":"2025-01-13T14:37:12.000Z","dependencies_parsed_at":"2022-08-31T05:01:59.951Z","dependency_job_id":null,"html_url":"https://github.com/traefik/plugin-blockpath","commit_stats":null,"previous_names":["containous/plugin-blockpath"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traefik%2Fplugin-blockpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traefik%2Fplugin-blockpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traefik%2Fplugin-blockpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traefik%2Fplugin-blockpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traefik","download_url":"https://codeload.github.com/traefik/plugin-blockpath/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252823684,"owners_count":21809707,"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":["traefik","traefik-plugin"],"created_at":"2024-08-01T15:02:26.583Z","updated_at":"2025-05-07T05:46:20.041Z","avatar_url":"https://github.com/traefik.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Block Path\n\n[![Build Status](https://github.com/traefik/plugin-blockpath/workflows/Main/badge.svg?branch=master)](https://github.com/traefik/plugin-blockpath/actions)\n\nBlock Path is a middleware plugin for [Traefik](https://github.com/traefik/traefik) which sends an HTTP `403 Forbidden` \nresponse when the requested HTTP path matches one the configured [regular expressions](https://github.com/google/re2/wiki/Syntax).\n\n## Configuration\n\n## Static\n\n```toml\n[pilot]\n    token=\"xxx\"\n\n[experimental.plugins.blockpath]\n    modulename = \"github.com/traefik/plugin-blockpath\"\n    version = \"v0.2.1\"\n```\n\n## Dynamic\n\nTo configure the `Block Path` plugin you should create a [middleware](https://docs.traefik.io/middlewares/overview/) in \nyour dynamic configuration as explained [here](https://docs.traefik.io/middlewares/overview/). The following example creates\nand uses the `blockpath` middleware plugin to block all HTTP requests with a path starting with `/foo`. \n\n```toml\n[http.routers]\n  [http.routers.my-router]\n    rule = \"Host(`localhost`)\"\n    middlewares = [\"block-foo\"]\n    service = \"my-service\"\n\n# Block all paths starting with /foo\n[http.middlewares]\n  [http.middlewares.block-foo.plugin.blockpath]\n    regex = [\"^/foo(.*)\"]\n\n[http.services]\n  [http.services.my-service]\n    [http.services.my-service.loadBalancer]\n      [[http.services.my-service.loadBalancer.servers]]\n        url = \"http://127.0.0.1\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraefik%2Fplugin-blockpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftraefik%2Fplugin-blockpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraefik%2Fplugin-blockpath/lists"}