The "Sex Tape Bill" became law Monday night, meaning that the dissemination of sexual photos or videos of someone without his or her knowledge is considered sexual harassment.
Anyone who posts sexual content without permission will be considered a sex offender and can be sentenced to up to five years in jail.
MK Yifat Kariv (Yesh Atid), who proposed the bill, said the law is meant to stop "the disgusting phenomenon of virtual rape."
"This is a dangerous phenomenon that must be uprooted, and I'm glad the Knesset thinks so, too," Kariv added.
The Yesh Atid lawmaker said her initiative was inspired by a recent case of what has become known as "revenge porn," in which a video of a couple having sex went viral on the messaging smartphone application Whatsapp, after the man sent the video following his breakup from the woman.