A man has been banned from having sex with a woman unless he gives police 24 hours warning.

The man, who cannot be named for legal reasons, must also tell officers in North Yorkshire the name of the woman he plans to have sex with before engaging in any form of sexual activity.

If the man wishes to have sex outside the North Yorkshire Police force area, he must instead contact the relevant local police force.

The man, from York, must also tell police about every device he owns or has access to that can access the internet or make contact with other people, the York Press reports.

The conditions were imposed on the man by way of an interim sexual risk order, requested by North Yorkshire Police.

The order was approved by a York magistrate and will be active until May 19, when the court will assess whether or not a full order is required, and if so how long it should last for.

The man will be bound by the civil order even though he has not been convicted of a sexual offence.

Breaching a sexual risk order can result in a five-year prison sentence.

Police can apply for orders in cases where they feel there is a need to protect the wider public.