White spot syndrome virus (WSSV) is a pathogenic and threatening virus in shrimp culture for which there is no effective control strategy. Finding antiviral lead compounds for the development of anti-WSSV drugs is urgent and necessary; in this study, esculin from 12 monomeric compounds exhibited an excellent anti-WSSV activity. The results showed that esculin increased the survival rate of WSSV-infected shrimps by 59% and reduced the virus copy number in vivo over 90% at 100μM. In the pre-treatment and post-treatment experiments, esculin could prevent and treat WSSV infection. Compared with the control group, the virus copy number decreased by 30% after 6h of esculin pre-incubation with WSSV particles and inhibited horizontal transmission of WSSV to a certain extent. Considering that the antiviral activity of esculin was stable in the aquacultural water for 2days, we evaluated the dosing pattern of continuous medication changes. Obviously, the survival rate of WSSV-infected shrimps was 0% at 108h when no esculin exchange was made, while at 120h the survival rate was over 40% at continuous medicine changes. In addition, esculin significantly increased the expression of antimicrobial peptides and thus improved the ability of shrimp to resist WSSV. Overall, our findings suggest that esculin has the potential to be developed into an anti-WSSV medicine.