Github was subject to US law before MS took it over; gitlab is not MS-owned but had to do the same (not sure about bitbucket but I imagine it's similar).
Whether the #1 place to host open-source projects should be owned by a company that makes a closed-source OS is a good debate question but it's completely orthogonal to whether they have to comply with US law.
I'm not saying I agree either with the sanctions or with Microsoft running github, but I'm saying you can't blame Microsoft for the current administration's sanctions on Iran.
I don't think people actively contributing to open source ever cared about in which nation their code was hosted. Because it didn't really matter.
Now it is like an old grumpy grandpa you wanted to get rid off some time ago suddenly caught up with you and enforced some of the shittiest laws you could imagine.
But did they really need to enforce that block? I would imagine nobody would have noticed it and if github wouldn't be owned by a giant that enforces compliance to the letter, Iranian devs wouldn't be banned.
Not the fault of MS, sure, just saying that this is one of the disadvantages about the takeover.
So why haven't all websites cut off these countries?
Why haven't the ISPs cut off these countries?
Github has acted because github is under the control of a giant corporation, Microsoft or otherwise.
So there's a line that runs precisely from Microsoft acquisition to cutting off countries from the world's largest open source repository. It's a direct outcome of the Microsoft acquisition.
A lot of pages have. Or at least they don't take payments from them. Larger CDN providers will maintain "US sanctions" blacklists which you can enable with one click. A lot of companies just don't care.
I doubt it - I would suggest the rapidly escalating tensions in the Gulf, combined with a much more activist / impulsive administration has caused this.
Github was subject to US law before MS took it over; gitlab is not MS-owned but had to do the same (not sure about bitbucket but I imagine it's similar).
Whether the #1 place to host open-source projects should be owned by a company that makes a closed-source OS is a good debate question but it's completely orthogonal to whether they have to comply with US law.
I'm not saying I agree either with the sanctions or with Microsoft running github, but I'm saying you can't blame Microsoft for the current administration's sanctions on Iran.