Cookies typically spread because you didn't chill the dough properly before going in the oven. So make sure you don't skip this step! Chilling the dough firms up the fat, which helps prevent spread.