Or you build bunkers and build robots to keep the riffraff out. Shock collars on the guards' necks.