Bail Act 2000, ss 21B, 30
If the police or the court release your harasser on bail, they’ll usually make it a condition of bail that the harasser must not contact you in any way.