Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Select Topic Area

Question

Body

Hi!

Could Github implement geoblocking feature? Either simple dialog with countries with checkboxes (around 192 or 193 checkboxes) or alternatively, just text input area where user can copy-paste IP-addresses in CIDR notation like here: https://github.com/ebrasha/cidr-ip-ranges-by-country/tree/master/CIDR (opens in a new tab)

I recommend CIDR. It will be very easy to implement and use with iptables rules

You must be logged in to vote

Replies: 4 comments

Comment options

Hello @EdgeOfAssembly,

That is an interesting proposal! Adding Geoblocking at the repository level could certainly add an extra layer of control for developers with specific compliance or security needs.

To make sure your idea reaches the right people at GitHub, I recommend the following:

Submit to the GitHub Feedback Repository: GitHub staff actively monitors the GitHub Feedback category. Reposting this there (or moving this discussion) increases the chances of it being seen by Product Managers.

Current Alternatives: While this native feature doesn't exist yet, for organizations that need strict IP control, GitHub currently offers IP Allow Lists (for Enterprise accounts). It's a 'whitelist' approach rather than a 'blacklist' (geoblock), but it's the standard for high-security environments.

Specify the Use Case: When you repost it, it might help to explain why you need it. Is it for licensing compliance, security against DDoS from specific regions, or something else?

Great suggestion regarding the CIDR notation, it definitely makes the implementation more flexible for advanced users!

You must be logged in to vote
0 replies
Comment options

Worth noting that GitHub already has IP allow lists for Enterprise accounts, which lets you restrict access by CIDR ranges, so the underlying infrastructure for something like this exists. The gap is that it's whitelist-only and Enterprise-only, not a per-repo blocklist available to regular users.

For what you're describing specifically, the closest workaround right now would be handling it at the deployment layer rather than GitHub itself. If you're serving something from Pages or an API, you'd geoblock there instead. GitHub as a code host is a bit trickier since blocking access to the repo itself would also block contributors from those regions.

Still a reasonable feature request though, especially for compliance use cases. The feedback forum is probably the right place to push it.

You must be logged in to vote
0 replies
Comment options

whitelist only is the reasonable feature. blacklists gamify attacks

You must be logged in to vote
0 replies
Comment options

🕒 Discussion Activity Reminder 🕒

This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions:

1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as out of date at the bottom of the page.

2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own.

3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution.

Note: This dormant notification will only apply to Discussions with the Question label. To learn more, see our recent announcement.

Thank you for helping bring this Discussion to a resolution! 💬

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repositories The core of version-controlled code storage Question Ask and answer questions about GitHub features and usage inactive This discussion has been automatically marked as inactive. This was formerly labeled stale. Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community!
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.