A device for treating viral infections. Embodiments of the device can include a housing, a power supply component disposed inside the housing, an electrical signal source, and a disposable head for connecting with the housing in a detachable manner. The disposable head can comprise an application surface for application to the skin or mucosa of a patient, and at least two embedded electrodes adapted for respectively connecting with the at least two output terminals of the electrical signal source. The device may include at least four embedded electrodes. The electrical signal source generates electrical pulses, and these electrical pulses are applied to the patient through the embedded electrodes of the disposable head.