I mean, online resources on other peoples' servers cost money.
A better law would be to forbid "free" offerings by companies. They all are fraudulent "free", since you pay a commercial entity with either money or data. And, corporate "free" rarely stays free.
(This also doesn't have to be a new law, but application of false and deceptive advertising relating to the FTC, around the term of "free".)
Edit: Found the rule, already in FTC's federal regs: https://www.ecfr.gov/current/title-16/chapter-I/subchapter-B...
If I want to find out which git hosting to use, it would be great to try out Gitlab, GitHub, and Bitbucket first (and everyone else try them) so we could assess genuine product usefulness as a group rather than rely on Twitter ads or astroturfing here (no bearing on product)