Another set of vaccines worked via a chemical process that inactivated the virus so it couldn’t replicate inside the body. The vaccines for polio, hepatitis A, influenza, and rabies worked that way. Inactivated vaccines had no chance of causing even a mild form of the disease they were inoculating against, making them ideal for anyone with a weakened immune system.