The problem of inhibiting viral DNA ejection from bacteriophages by multivalent counterions, specifically Mg(+2) counterions, is studied. Experimentally, it is known that MgSO(4) salt has a strong and nonmonotonic effect on the amount of DNA ejected. There exists an optimal concentration at which the minimum amount of DNA is ejected from the virus. At lower or higher concentrations, more DNA is...