Antivirals work through various mechanisms, depending on the virus. Some block viral entry into host cells, others inhibit viral replication, and some enhance the immune system's ability to fight the virus. For example, nucleoside analogs like acyclovir inhibit viral DNA synthesis, while protease inhibitors prevent viral protein processing.