First, make sure the butter is softened but not melted. Butter that is too warm will spread too much when baked. Using rolled oats will also help keep the cookies from spreading. Chilling the cookie dough for 30 minutes before baking can also help prevent the cookies form spreading too much.