Senate Bill 255 was signed Tuesday and takes immediate effect. It's aimed at people who post nude pictures of their exes online after bitter breakups - an increasing problem in the age of social networks.

The law makes it a misdemeanor to post identifiable nude pictures of someone else online without permission with the intent to cause emotional distress or humiliation. The penalty is up to six months in jail and a $1,000 fine.

The American Civil Liberties Union had opposed the bill, arguing it might restrict free speech rights.

But its author, Sen. Anthony Cannella, argued that lives were being destroyed and the bill would provide a much-needed tool for law enforcement.