Save yourself some mess with this: the anti-boil over clip:

It’s a horrible name for a product, but a good idea nonetheless:
Over Boil Clip:
Boil pasta, vegetables or potatoes and walk away without worry. The 5/8" height adds just the right amount of space to let steam escape…no more bubbling messes. Dishwasher safe Dupont nylon fits all pots!
Via book of joe
Powered by Qumana

I actually think this is one of those gadgets that nobody needs. If you don’t want your pot to boil over simply offset the lid on a diagonal with part in the pot and the other part out.