Instead of banning, why not put the REAL price tag on it? Require local employment. Stop subsidizing infrastructure. Start taxing them. If a data center came in and provided jobs, paid their own way without handouts, and lowered electricity costs, it might be a different story.
It's not data centers per se. It's the crony capitalism that subsidizes them and lets them extract wealth without oversight. Regulate it properly and the negative characteristics go away. And yes, putting the actual price tag on it might scare away most investors - an effective ban. But that's the market working efficiently on price signals.