Felony sex offenders will be blocked from having a child placed in their custody by courts, based on a law signed Thursday by Gov. Andrew Cuomo.

The law is meant to strengthen protections for minors against contact with sex offenders, and at the same time prevents sex offenders from having unsupervised visits with a person who has been convicted of a felony sex offense.

“No child should have to endure the trauma of sexual abuse and it is critical that children going into the custody of another individual are safe,” Cuomo said in a statement. “This new law is common sense: it mandates that minors not be placed in the custody of or have unsupervised visits with anyone who committed a felony sex offense against them and ensuring the future wellbeing of these vulnerable children.”

The measure was sponsored by Assemblyman Charles Fall and Sen. Diane Savino.

“The effects that abuse can have on a child over their course are wide-ranging, from depression to alcohol and drug abuse to withdrawal and suicide attempts,” Savino said.

“It is our duty to ensure that they are protected when it comes to custody and visitation rulings. Those convicted of sex offenses should have to prove that they are suited to have custody or unsupervised visits, not the other way around. I thank Gov. Cuomo for signing this bill into law and to seeing the improvements it ultimately makes in our family court system.”