Police have welcomed the ban and said they hope it will discourage similar behaviour from others