Power surge/spike protectors with high joule ratings are more costly too but well worth the investment. Look for these accessories too include a warranty of protection (insurance).
Don't use extension cords, or 'power strips' as they have no protection in them.
And if you want, add a battery backup supply, and an isolated noise filter and line conditioner as not all the power coming from the poles are constant, this is what A/C power is, its fluctuating or as the 'a' in a/c means, alternating current. Sometimes it is the cause of a brown out, where the power from the supply dips well below what is necessary for the device to operate at and causes the components to shut-off. Which results in loss of data and even possible damage when the power levels back out and the components start operating once more.
Time to start using backups, so your causing yourself to go grey reinstalling your OS.