(Newser) – A seemingly bizarre court order in the UK has been making news around the world. The court in York, England, granted a police request to order a man to inform police at least 24 hours before having sex, and to "disclose the details of any female including her name, address, and date of birth," the Guardian reports. This though the man was cleared of rape: The BBC reports that at a retrial last year, the man, who is in his 40s, was acquitted of raping a woman after he alleged she gave her consent. He faces up to five years in prison if he breaches the court order, a temporary one that runs until May; it could then be extended as a full order for an indefinite amount of time, according to the BBC.

The ruling is a "sexual risk order," which, according to government guidelines, can be issued to somebody "who has done an act of a sexual nature and who, as a result, poses a risk of harm to the public in the UK or children or vulnerable adults abroad." The man has also had his use of the Internet and mobile devices restricted and is required to inform police of any change of address. Sexual risk orders became part of British law last March and are used when police believe somebody who has not been convicted of a crime is at risk of offending, the Guardian reports. (In a controversial court ruling in the UK, a 21-year-old babysitter who admitted to having sexual intercourse with the 11-year-old boy in her care has been spared a prison term.)

