A man has been banned from entering three areas after being served with a Criminal Behaviour Order.