Acyclovir (Zovirax) is an inexpensive drug used to treat or prevent infections caused by certain kinds of viruses. Examples of these infections include herpes and shingles. This drug is slightly more popular than comparable drugs. It is available in generic and brand form.