A growing number of local governments are beefing up safeguards.