Do it all the time. Get a spray bottle of filtered water, watch it especially when coming to a boil as well as when adding hops. With a little technique, after many many batches boiled over, I rarely have this issue any more, and I do a very vigorous boil.
Give a man a beer, waste an hour. Teach a man to brew, and waste a lifetime! Bill Owen quote
Why does Happy Hour limit happiness to 1/24 of the day?