Harassment Act 1997, s 19
A restraining order makes it a criminal offence for the harasser to contact you in any way, or to do things like watching or hanging around outside your home, or following you or stopping you in the street, or doing anything else that gives you a reasonable fear for your safety.
The order also makes it illegal for the harasser to threaten to do any of those things, or to encourage one of their friends or any other person to do one of those things to you.
If the order has been made because of a continuing act of harassment, it’s a condition of the order that the harasser must take reasonable steps to stop this continuing. For example, if the harasser had posted offensive material about you online, they’ll have to take the offensive material down.
For a full list of the kinds of behaviour that are banned under a restraining order, see above, “What counts as ‘harassment’”.