Remarkably, CapZ knockout or artificially tethering CapZ to EEs via rapamycin significantly inhibited flaviviruses, e.g., Zika virus (ZIKV) and dengue virus (DENV), or beta-coronavirus, e.g., murine hepatitis virus (MHV), infection by preventing the escape of RNA genome from endocytic vesicles. Here, CAPZB is linked to infection.