. . . . "For prohibiting the erecting, locating or using of buildings or structures for or except for such purposes as may be set out in the by-law within the municipality or within any defined area or areas or upon land abutting on any defined highway or part of a highway." .