Knockdown of CFTR in cells or the inhibition of CFTR activity by pharmacological inhibitors suppressed viral infection and protected mice from HSV-1 and HSV-2 infection. Here, CFTR is linked to viral infectious disease.