Akinwale Arobieke, 45, from Liverpool, was also banned from measuring the size of muscles, under the order requested by Merseyside Police.

Arobieke, who is known in the area as Purple Aki, is out of jail on licence after a sentence imposed in 2003 for 15 counts of harassment.

He pursued young people with requests such as asking to feel their muscles.

Deputy District Judge Aled Jones granted the order to coincide with Arobieke's release on Thursday.

Town ban

Merseyside Police applied to Liverpool Magistrates' Court for a Sexual Offences Prevention Order against Arobieke - despite the fact he has not been convicted of a sex crime.

A spokeswoman for Merseyside Police confirmed an interim order had been granted until 23 November.

Under the terms of the order Arobieke cannot touch, feel or measure muscles or ask people to do squat exercises in public.

Neither can he approach or do paid or voluntary work with any young person under 18.

He is also banned from St Helens, Warrington or Widnes without the permission of either the chief constable of Merseyside or the chief constable of Cheshire.

And he cannot loiter near educational establishments, gyms or sports clubs.