{"id":51579333,"url":"https://github.com/ipverse/country-ip-blocks","last_synced_at":"2026-07-11T04:02:50.500Z","repository":{"id":37811192,"uuid":"422834607","full_name":"ipverse/country-ip-blocks","owner":"ipverse","description":"Download country IP block lists - compact, daily updated","archived":false,"fork":false,"pushed_at":"2026-07-04T02:12:45.000Z","size":450740,"stargazers_count":449,"open_issues_count":0,"forks_count":67,"subscribers_count":15,"default_branch":"master","last_synced_at":"2026-07-04T04:15:49.674Z","etag":null,"topics":["blocklist","geolocation","networking","prefixes","routing"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipverse.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-10-30T09:13:14.000Z","updated_at":"2026-07-04T02:12:49.000Z","dependencies_parsed_at":"2024-01-23T03:02:14.474Z","dependency_job_id":"f50db8ed-701d-4fc3-bb18-d693aa57ad87","html_url":"https://github.com/ipverse/country-ip-blocks","commit_stats":null,"previous_names":["ipverse/country-ip-blocks"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ipverse/country-ip-blocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipverse%2Fcountry-ip-blocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipverse%2Fcountry-ip-blocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipverse%2Fcountry-ip-blocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipverse%2Fcountry-ip-blocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipverse","download_url":"https://codeload.github.com/ipverse/country-ip-blocks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipverse%2Fcountry-ip-blocks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35350133,"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-07-11T02:00:05.354Z","response_time":104,"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":["blocklist","geolocation","networking","prefixes","routing"],"created_at":"2026-07-11T04:02:50.110Z","updated_at":"2026-07-11T04:02:50.495Z","avatar_url":"https://github.com/ipverse.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# country-ip-blocks\n\n## 🔍 Try it online\n\nLook up any IP address or prefix at **[Lens by ipverse](https://lens.ipverse.net)** to see its country and AS information.\n\n## Overview\n\nReady-to-use IPv4 and IPv6 prefixes by country (ISO 3166-1 alpha-2), sourced from all five regional internet registries (RIR). Aggregated and updated daily.\n\n## 📍 Need more accurate geolocation?\n\nThis dataset shows where IP ranges are officially *delegated* - useful for administrative and regulatory purposes. For more accurate operational geolocation based on actual network assignments, check out **[geo-ip-blocks](https://github.com/ipverse/geo-ip-blocks)**.\n\n| Dataset | Best for |\n|---------|----------|\n| [country-ip-blocks](https://github.com/ipverse/country-ip-blocks) | Administrative/regulatory use cases |\n| [geo-ip-blocks](https://github.com/ipverse/geo-ip-blocks) | Operational geolocation |\n\n## Formats\n\n**JSON format**:\n```json\n{\n  \"country\": \"Andorra\",\n  \"countryCode\": \"AD\",\n  \"delegationStatus\": [\n    \"allocated\",\n    \"assigned\"\n  ],\n  \"exportMode\": \"aggregated\",\n  \"prefixes\": {\n    \"ipv4\": [\n      \"46.172.224.0/19\",\n      \"85.94.160.0/19\"\n    ],\n    \"ipv6\": [\n      \"2a01:fb00::/29\"\n    ]\n  }\n}\n```\n\n**Plaintext format** (Andorra IPv4):\n```\n46.172.224.0/19\n85.94.160.0/19\n```\n\n**Plaintext format** (Andorra IPv6):\n```\n2a01:fb00::/29\n```\n\n## How to use\n\nDownload prefixes for a specific country (Andorra in these examples):\n\n**Andorra in JSON format:**\n```bash\ncurl https://raw.githubusercontent.com/ipverse/country-ip-blocks/master/country/ad/aggregated.json\n```\n\n**Andorra IPv4 addresses:**\n```bash\ncurl https://raw.githubusercontent.com/ipverse/country-ip-blocks/master/country/ad/ipv4-aggregated.txt\n```\n\n**Andorra IPv6 addresses:**\n```bash\ncurl https://raw.githubusercontent.com/ipverse/country-ip-blocks/master/country/ad/ipv6-aggregated.txt\n```\n\n### Bulk download\n\nDownload all countries in a single archive from the [latest release](https://github.com/ipverse/country-ip-blocks/releases/latest):\n```bash\ncurl -LO https://github.com/ipverse/country-ip-blocks/releases/latest/download/country-ip-blocks.tar.gz\ntar -xzf country-ip-blocks.tar.gz\n```\n\n### Want more granular control?\n\nInstead of blocking an entire geographic region, it might be more effective to block specific internet providers based on their autonomous system number (ASN). Check out [as-ip-blocks](https://github.com/ipverse/as-ip-blocks) for more information.\n\n## Use cases\n- Block countries at the firewall (for compliance or security reasons)\n- Geo-based access control and traffic routing\n- Network research and statistical analysis\n- Threat hunting and security research\n\n## Recent changes\n\n- **2026-01-17**: Added bulk download archive in [releases](https://github.com/ipverse/country-ip-blocks/releases/latest)\n- **2026-01-03**: Repo renamed from `rir-ip` to `country-ip-blocks` and JSON format updated to use camelCase.\n- 2025-05-04: Removed country code EU (non-standard code that RIPE only kept for historical reasons)\n\n## Questions or issues?\n\nHead over to the [feedback repo](https://github.com/ipverse/feedback) if you have questions, issues, or suggestions.\n\n## License\n\nThis data is released under [CC0 1.0 Universal](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipverse%2Fcountry-ip-blocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipverse%2Fcountry-ip-blocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipverse%2Fcountry-ip-blocks/lists"}