Feature Request: Custom Landing Page for Unauthorized Access to Private Repositories #205074
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Approach: Use GitHub Pages as a Router If you manage your portfolio via GitHub Pages, you can use custom routing or a centralized redirection script. Instead of linking to |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
Body
Problem
When someone without access opens the direct URL of a private GitHub repository, GitHub shows a standard 404 Not Found page.
I completely understand why GitHub does this, and I don't think the privacy behavior should be changed. The problem is the lack of customization around that experience.
Developers frequently share repository URLs in portfolios, resumes, Devfolio profiles, project documentation, blog posts, and other places. If the repository is private, anyone without access who follows that link simply reaches a generic 404 page with no context or useful next step.
Proposed Feature
Allow repository owners to optionally configure a custom unauthorized-access landing page for their private repositories.
For example:
The owner could optionally configure:
Privacy
This feature should not require GitHub to change its current privacy model.
GitHub could continue returning the same 404 status or otherwise prevent unauthorized users from determining whether a private repository exists.
The customization could simply control what is displayed to the visitor when they arrive through a repository URL, without exposing repository metadata, source code, commit history, or other private information.
An even simpler implementation could be an optional repository setting such as:
Private Repository → Unauthorized Access Page
with a small editor for the message and CTA.
Why this would be useful
This would be especially useful for developers and organizations that publicly reference private repositories.
For example:
It would turn an otherwise confusing dead end into a useful experience while preserving GitHub's security and privacy behavior.
I think this would be a relatively small UX improvement with a lot of value for developers who use GitHub as part of their public portfolio and project workflow.
Would love to hear what other developers think about this and whether GitHub could consider supporting something like this in the future.
All reactions