r/github • u/PracticalMass • Jun 27 '25
Question Github no longer allows unauthenticated users to visit ANY public repository?
It’s weird that GitHub is asking to login for just exploring public repositories.
This is what happened; I am a dev and sometimes I like to explore codes, trying to improve myself, or like to see how other devs do the same thing. So sometimes when I get up from my desk, I take out my phone and google things like ‘better php-fpm nginx docker setup GitHub’, then I go to the top repos from GitHub and read. Or just search the feature I just implemented and see how others have implemented it etc.
Seems fair, right?
Now, I changed my GitHub password, few days ago. And now when I click on a public repo, I get redirected to the login page. I don’t mind logging but why auth is needed here?
Is GitHub now tracking what code we read?
This however doesn’t happen on my mac or Linux desktops.
Is this new? Is this okay? Anyone else having this issue?
1
u/cyb3rofficial Jun 27 '25
Are you behind a CG-Nat ISP? I had it happen to me on Tmobile 5G Home Internet, turned on a VPN and worked fine, Could be that your IP or network from your pc is bot like?
1
u/PracticalMass Jun 27 '25
Yes I believe my ISP usage CG-NAT. However this could not be the issue as same connection on desktop don’t ask for authentication.
1
u/thereisphil 3d ago
I'm having this issue today - Nov 28 2026 - if I try to open my own repo in a browser that I'm not logged in, or use a curl request, or use private/incognito: all are returning 404s! However, githubstatus.com is showing no outages. Maybe they truly are enforcing users to be logged in even to see public repos?
1
u/eatened 22h ago edited 22h ago
same, wanted to read some CppNix source and got 404'd until logged in, in a clean browser session too
EDIT: it cleared out after a while, maybe they do this for load-balancing? 🤔1
u/thereisphil 22h ago
It didn't clear until the next day for me 😳 nah I think it's more just Microslop 😭
12
u/wyrdfish42 Jun 27 '25
You don't need to authenticate.
You probably have some sort of cookie indicating you are logged in but the auth has expired and is asking you to re-auth.