Genetically modified CCNT1 and XPO1 genes encoding proteins that inhibit virus infection in cells. The genetically modified CCNT1 gene encodes a protein with a C261Y substitution with respect to the human CCNT1 protein. The genetically modified XPO1 gene encodes a protein with P411T, M412V, and/or F414S substitutions with respect to the human XPO1 protein. The genetically modified CCNT1 and XPO1 genes can be introduced in cells. The cells comprising the genetically modified CCNT1 and XPO1 genes can be introduced in a subject with a virus infection to treat the infection.