Controlling chaos through local knowledge