{"id":18835975,"url":"https://github.com/nscuro/traefik-plugin-geoblock","last_synced_at":"2025-08-22T05:31:10.411Z","repository":{"id":38020566,"uuid":"413544513","full_name":"nscuro/traefik-plugin-geoblock","owner":"nscuro","description":"traefik plugin to whitelist requests based on geolocation","archived":false,"fork":false,"pushed_at":"2024-12-03T02:13:53.000Z","size":22812,"stargazers_count":44,"open_issues_count":10,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-10T22:51:26.816Z","etag":null,"topics":["geoblock","ip2location","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/nscuro.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":"2021-10-04T18:44:51.000Z","updated_at":"2024-12-10T07:41:31.000Z","dependencies_parsed_at":"2024-05-08T06:24:37.811Z","dependency_job_id":"e042c18f-2cd3-4369-ac94-eb0da545d3cf","html_url":"https://github.com/nscuro/traefik-plugin-geoblock","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nscuro%2Ftraefik-plugin-geoblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nscuro%2Ftraefik-plugin-geoblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nscuro%2Ftraefik-plugin-geoblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nscuro%2Ftraefik-plugin-geoblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nscuro","download_url":"https://codeload.github.com/nscuro/traefik-plugin-geoblock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230561013,"owners_count":18245324,"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":["geoblock","ip2location","traefik-plugin"],"created_at":"2024-11-08T02:17:45.553Z","updated_at":"2024-12-20T09:06:33.072Z","avatar_url":"https://github.com/nscuro.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# traefik-plugin-geoblock\n\n[![Build Status](https://github.com/nscuro/traefik-plugin-geoblock/actions/workflows/ci.yml/badge.svg)](https://github.com/nscuro/traefik-plugin-geoblock/actions/workflows/ci.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/nscuro/traefik-plugin-geoblock)](https://goreportcard.com/report/github.com/nscuro/traefik-plugin-geoblock)\n[![Latest GitHub release](https://img.shields.io/github/v/release/nscuro/traefik-plugin-geoblock?sort=semver)](https://github.com/nscuro/traefik-plugin-geoblock/releases/latest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](LICENSE)  \n\n*traefik-plugin-geoblock is a traefik plugin to allow or block requests based on geolocation*\n\n\u003e This projects includes IP2Location LITE data available from [`lite.ip2location.com`](https://lite.ip2location.com/database/ip-country).\n\n## Configuration\n\n### Static\n\n#### Local\n\n```yaml\nexperimental:\n  localPlugins:\n    geoblock:\n      moduleName: github.com/nscuro/traefik-plugin-geoblock\n```\n\n#### Pilot\n\n```yaml\npilot:\n  token: \"xxxxxxxxx\"\n\nexperimental:\n  plugins:\n    geoblock:\n      moduleName: github.com/nscuro/traefik-plugin-geoblock\n      version: v0.5.0\n```\n\n### Dynamic\n\n```yaml\nhttp:\n  middlewares:\n    geoblock:\n      plugin:\n        geoblock:\n          # Enable this plugin?\n          enabled: true\n          # Path to ip2location database file\n          databaseFilePath: /plugins-local/src/github.com/nscuro/traefik-plugin-geoblock/IP2LOCATION-LITE-DB1.IPV6.BIN\n          # Whitelist of countries to allow (ISO 3166-1 alpha-2)\n          allowedCountries: [ \"AT\", \"CH\", \"DE\" ]\n          # Blocklist of countries to block (ISO 3166-1 alpha-2)\n          blockedCountries: [ \"RU\" ]\n          # Default allow indicates that if an IP is in neither block list nor allow lists, it should be allowed.\n          defaultAllow: false\n          # Allow requests from private / internal networks?\n          allowPrivate: true\n          # HTTP status code to return for disallowed requests (default: 403)\n          disallowedStatusCode: 204\n          # Add CIDR to be whitelisted, even if in a non-allowed country\n          allowedIPBlocks: [\"66.249.64.0/19\"]\n          # Add CIDR to be blacklisted, even if in an allowed country or IP block\n          blockedIPBlocks: [\"66.249.64.5/32\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnscuro%2Ftraefik-plugin-geoblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnscuro%2Ftraefik-plugin-geoblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnscuro%2Ftraefik-plugin-geoblock/lists"}