The second is you distribute content to random hosts, who don't even know what it is (so they can't associate it with whoever is downloading it). This solves the privacy problem and has adequate performance but it only works if you don't have bad laws that impose liability on people even if they aren't knowingly hosting something illegal. Otherwise the government can prosecute a couple of random innocent people and put enough fear into everyone else that they move back to Facebook.
The third is onion routing. Then it's hard to shut down specific hosts (you don't know who they are), but it's slow and if your laws are sufficiently bad it can be made illegal to use it at all even if you aren't doing anything wrong. At that point you go down the road into Tor Project vs. Chinese Firewall, but that's just a disgraceful way to have to operate your communities in a democracy. And for every bug an innocent person goes to prison.