One of the best ways to prevent cookie dough from spreading is to turn them into cookie bars by baking them in a traybake tin. If baking individual cookies, ensure that your oven has come up to temperature before you place the sheet of cookies in the oven to bake.