A Los Angeles man became the first person to be sentenced to jail under California's new "revenge porn" law on Monday.

Noe Iniguez, 36, was sentenced to a year in jail, 36 months of probation, and domestic violence counseling for posting revenge porn of his ex-girlfriend on her employer's Facebook page in December 2013, in an attempt to destroy her image and career, New York Daily News reported.

"California's new revenge porn law gives prosecutors a valuable tool to protect victims whose lives and reputations have been upended by a person they once trusted. This conviction sends a strong message that this type of malicious behavior will not be tolerated," said City Attorney Mike Feuer in a press release.

In December, the 36-year-old from Los Angeles posted a topless photo of his ex-girlfriend on her employer's Facebook page and captioned it with derogatory words such as "drunk" and "slut."

The California law, which went into effect in October 2013, forbids people from posting sexual photos online with the intent to cause emotional harm.

However, "revenge porn" isn't illegal in many other states, which essentially allows people to post nude photos of whomever they want, and not face consequences, according to Gizmodo.

In Inguez's case, he used an alias to post the photos, believing it wouldn't be traced back to him, Feuer said.

"In December 2013, Iniguez, using an alias, allegedly began posting derogatory comments about his ex-girlfriend on her employer's Facebook page. [He] allegedly posted a topless photograph of the victim on her employer's Facebook page which was accompanied by a message that called the victim a 'drunk' and a 'slut' and encouraged her firing from the company."

Before being found guilty, Iniguez had been charged with three criminal counts for violating two restraining orders, according to a police report. Last November, he posted his ex-girlfriend's inappropriate photo shortly after she took out a restraining order against him for sending harassing text messages after they had broken up.

Meanwhile, "there was a lot of attention on revenge porn back in 2012 when Hunter Moore's infamous website, Is Anyone Up, was running," according to NYDN. "The website featured loads of revenge porn from teens who despised their ex-lovers. The website eventually shut down when Moore sold it to an anti-bullying website."