Put a wooden spoon over the pan, as shown in the picture below, to prevent your pasta from boiling over.