Just like the real world, there are laws and regulations put in place to better structure the digital environment. These regulations are put in place to protect users from harm online.
Example:
There are regulations to help those who are being cyberbullied and ways to prevent it.
Taking inappropriate pictures and blackmailing someone can be a form of assault and can be dealt with as well.