Governments probably shouldn't simply ban all free products, but it certainly might be reasonable to ban some economic activities that enable some business models for sustaining free products.
Of course not, but it wouldn't hurt if we all got better at valuing our work more. Heck, majority of developers I worked with are decent, loving people, who could simply never dare to ask to be compensated for the work they do...