The costs could be steep if the local council spots a law infringement.