Exposing someone online without their consent can be punishable by law, depending on the jurisdiction and applicable laws. It is important to consult local laws or legal professionals to understand the specific legal consequences of such actions.