What law did the cyber curse violate?

It depends on the specific situation.

1. Insulting others on the Internet is a violation of their personal rights, and they shall be detained for up to five days or fined up to 500 yuan. If the circumstances are serious, they shall be detained for not less than five days but not more than ten days, and may also be fined not more than 500 yuan.

2. If you insult many times for a long time, it may constitute an insult. If the circumstances are serious, they shall be sentenced to fixed-term imprisonment of not more than three years, criminal detention, public surveillance or deprivation of political rights.

The crime of insult refers to the act of publicly degrading personality and damaging the reputation of others by violence or other means, and the circumstances are serious.

Legal basis:

Article 246 of the Criminal Law

Whoever publicly insults others by violence or other means or fabricates facts to slander others, if the circumstances are serious, shall be sentenced to fixed-term imprisonment of not more than three years, criminal detention, public surveillance or deprivation of political rights.

It is illegal to swear on the internet, and if the circumstances are serious, it will also constitute an insult.

1. Anyone who infringes on another person's right to reputation and privacy is an illegal act and should bear the tort liability.

2. If it violates the administration of public security, it is also an illegal act, and it is responsible for the administrative punishment of fines and detention.

The internet is not a place of extra-legality. Of course, it is illegal to insult others online. Victims have the right to use legal weapons to defend their rights.