How to block write access on Github at Firewall or proxy

My company needs to block all write/push access to GitHub repos but still allow read and clone access via the https, ssh, and git protocols. Has anyone had any experience with this?


Hi there! :wave: Welcome to the Community!

Hmmmm, this isn’t something that’s natively supported by GitHub, but perhaps some of our ingenious users have come up with a method of doing this?

I can point you to this article that explains how to get live data about which IP addresses and ports we’re using:

Can I ask why you’re trying to do this at the Firewall level, rather than just giving people Read access in the organization settings?

Hi, thanks for responding and the article links.
To answer your question, our company doesn’t have organisational GitHub repos so we just want to restrict employees from uploading files into their public personal repos. We’ve had a few accidental uploads of company IP into public repos and we need to prevent this without limiting read access.

Hi Alan, thanks for clarifying!

As I said, this isn’t something that GitHub itself can do, but hopefully some of our community members have come up with some work arounds to achieve the desired result! :crossed_fingers:

Thanks again. I understand - I thought I’d put it out there to see if the community had done something like this.

1 Like