Gov. Bob Mc­Don­nell signed a bill to restrict alcohol ads on billboards in certain places following a settlement in January with billboard company Lamar that resulted in the commonwealth lifting a long-standing ban on the ads across the state.

The new guidelines, which go into effect immediately, allow liquor billboards in industrial and commercial areas, but ban them within 500 feet (equal to about six houses) from schools, houses, places of worship or parks.

Lawmakers worked around the clock during the legislative session to come up with a deal with more than three dozen lobbyists who represents alcohol, advertising and other interests. Representatives for Lamar and the Virginia Outdoor Advertising Agency Association signed off on the bill.

The bill closely matches the settlement but no longer allows alcohol ads on billboards in residential areas.