The only surefire way to prevent power surges from affecting your device is to completely remove it from its power source (i.e., unplugging it). Understandably, this measure may not be ideal in most cases. Therefore, making sure that all digital electronics are connected through high-quality surge protectors is the next best defense against an electrical power surge.