Antiviral drugs are used to treat viral infections. These assist the body to protect itself against viruses that cause illness. They are also used to avoid antiviral infections. Antiviral drugs defend against viral infections and their spread to others. These are available in pill, injectable, infusion, ointment, and eye drop forms.