New London, CT (MSNBC) -- A Connecticut judge has ordered a married couple to hand over passwords to their Facebook and online dating profiles.
It's all part of their divorce case.
New London District Superior Court Judge Kenneth Shluger says the passwords will help lawyers in the discovery process of Stephen and Courtney Gallion's custody battle.
But the couple will not be allowed to view the other's profiles.
The issue came up when Stephen looked at his wife's Facebook page and found comments about himself and their kids.
He wants to use it against her in the case.
Kashmir Hill of Forbes called the decision "court-ordered hacking." He says the ruling also forces both parties to violate Facebook's terms of service, which states users should not reveal their passwords to anyone.